Page 1 of 1

2 functions in harmony

Posted: Mon Oct 30, 2006 4:24 pm
by patlap
I'm looking for a way to pass a current date function through a truetype function.
Does anyone have a quick tip to let live those two in harmony ?

Code: Select all

<div class="zone2">{cms_module module="truetypetext" style="container_Stitre" text="ÉVÈNEMENTS  | {current_date format="%D-%M-%Y "}"}
{content block="Zone 1b"}</div>
Thank you

Re: 2 functions in harmony

Posted: Tue Oct 31, 2006 5:15 pm
by tsw
this might work (untested)

{capture name="events"}
ÉVÈNEMENTS - {$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'}
{/capture}

{cms_module module="truetypetext" style="container_Stitre" text=$smarty.capture.events}

modifiers have a bad habbit of affecting all the output of a tag...