2 functions in harmony

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
patlap

2 functions in harmony

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: 2 functions in harmony

Post 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...
Locked

Return to “Layout and Design (CSS & HTML)”