Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
I have a slider that I need to schedule start and end dates for specific slides for the holidays. Is there a way to do this with couch?
Hello!
Yes it can be done.

I will quote an example from what I had done recently.

The consideration was that the Advertisement Banner Image will start to display once it is uploaded... But will end once the advt duration ends (for example after, 1day, 1week, 1month...).

So this is the editable for the end date:
Code: Select all
<cms:editable name='end_date' label='Advt End Date' desc='advt will stop appearing in the app banner' type='datetime' format='U'/>


And to implement it to end the advt the code i used is:
Code: Select all
<cms:set curr_date="<cms:date format='Y-m-d' />" />
<cms:set advt_end_date="<cms:date end_date format='Y-m-d' />" scope='global' />
<cms:if curr_date le advt_end_date >
    <img src="<cms:show advt_image />" />
</cms:if>


hope this helps. if you need further help please share your code (that you have tried out) and i (and others from the forum) will try to help you out!

Regards,
GenXCoders
Image
where innovation meets technology
This is exactly what I needed. Thank you!
You are most Welcome!

Regards,
GenXCoders

P.S.: Can you please edit the title of your 1st post and make it as:

Code: Select all
[SOLVED]Schedule Start and End Date for Slider


I would be thankful. It actually helps others too.
Image
where innovation meets technology
4 posts Page 1 of 1