Hi,
I have added a two new fields so that I can add special offers to my directory listings, which expire on a certain date. I'm using these fields, "special" (the details of the offer) and "special_end" (the date it finishes), in a global and I have managed to specify that they are only shown if the special_end is greater than now(). However, I would also like to use this in a template and it doesn't seem to be working.
<%if Special_End < NOW()%><%else%><%if Special%><%Special%><%endif%><%endif%>
I'm assuming that the problem is that I can't use NOW() in a template. Is there any other way to do this?
Thanks,
Laura.
I have added a two new fields so that I can add special offers to my directory listings, which expire on a certain date. I'm using these fields, "special" (the details of the offer) and "special_end" (the date it finishes), in a global and I have managed to specify that they are only shown if the special_end is greater than now(). However, I would also like to use this in a template and it doesn't seem to be working.
<%if Special_End < NOW()%><%else%><%if Special%><%Special%><%endif%><%endif%>
I'm assuming that the problem is that I can't use NOW() in a template. Is there any other way to do this?
Thanks,
Laura.