[Templates] Newbie question about setting site wide variables
Andy Wardley
abw at wardley.org
Mon Apr 28 21:16:40 BST 2008
David Favor wrote:
> I'm trying to set a site wide dynamic variable date similar to:
>
> [%
> email = 'someone at somewhere.com'
> this_year = [% date.format(date.now,'%Y') %]
^^ ^^
You've got an extra set of [% %] that you don't need.
[%
email = 'someone at somewhere.com'
this_year = date.format(date.now,'%Y')
%]
That should do it. Just don't forget to [% USE date %] somewhere
above that line to load the date plugin.
A
More information about the templates
mailing list