Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Friday 17 August 2007 10:37:57 am - 2 replies
Modified on Friday 17 August 2007 10:38:35 am by laurent le cadet
Felix Laate
Saturday 18 August 2007 8:50:25 am
Hi Laurent,
just a thaught.
With 3 months, do you mean 3 x 30 days? In that case you would want to show all objects with a timestamp greater than the timestamp of currentdate() - 7776000 (90 days of seconds).
Felix
Publlic Relations Manager Greater Stavanger www.greaterstavanger.com
laurent le cadet
Monday 20 August 2007 12:02:16 am
Felix,
Excatly what I need. So it turns like this :
{def $currentimestamp = cond( and(ne($view_parameters.month, ''), ne($view_parameters.day, ''), ne($view_parameters.year, '')), makedate($view_parameters.month, $view_parameters.day, $view_parameters.year), currentdate() ) $objectimestamp = $node.object.data_map.date_marche.data_int} {if gt($objectimestamp, sub($currentimestamp,7776000) )} <img src={"images/new.gif"|ezdesign} height="11" width="48" title="New" alt="New" /> {/if}
Thanks a lot.
Laurent
You must be logged in to post messages in this topic!