Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

template condition by date?

Quote Reply
template condition by date?
So we have these images that all of them changed to a new format after a certain date (say DATE X), is there a way to do something like this? Basically how do you do a date comparison in a template OR what kind of global would dump out 1 or 0 if date1 > date2?

Code:
<%set orientation = 'portrait'%>
<%if $date > Feb 7%>
<%set tablewidth = 758%>
<%else%>
<%set tablewidth = 1053%>
Subject Author Views Date
Thread template condition by date? scorpioncapital 3474 Feb 10, 2004, 2:25 PM
Thread Re: [scorpioncapital] template condition by date?
ManuGermany 3384 Feb 10, 2004, 11:51 PM
Post Re: [ManuGermany] template condition by date?
scorpioncapital 3370 Feb 11, 2004, 10:22 AM
Thread Re: [scorpioncapital] template condition by date?
afinlr 3370 Feb 12, 2004, 6:19 AM
Thread Re: [afinlr] template condition by date?
scorpioncapital 3358 Feb 12, 2004, 10:56 AM
Thread Re: [scorpioncapital] template condition by date?
afinlr 3360 Feb 12, 2004, 11:24 AM
Post Re: [afinlr] template condition by date?
scorpioncapital 3325 Feb 12, 2004, 1:13 PM
Post Re: [scorpioncapital] template condition by date?
pugdog 3332 Feb 12, 2004, 1:08 PM