PXLated - 31 July 2008 01:23 AM
Could be wrong but I don’t think you can embed one global within another.
You could instead use a template with the copyright text and the time global and embed that template. I’m pretty sure that would work.
Edit-Add: Sean had the definitive answer. The template idea would work though.
...Maybe I’m really stupid but ....
I’ve created a new Template named “Footer” with this code inside :
<p><span>copyright © {current_time format="%Y"} codenic·com | Tutti i diritti riservati | Powered by </span>
<span><a href="http://www.expressionengine.com" title="Publish Your Universe !">Expression Engine</a> & </span>
<span><a href="http://code.google.com/p/blueprintcss/" title="BluePrint CSS Framework">BluePrint</a> & </span>
<span><a href="http://www.jquery.com" title="jQuery: The Write Less, Do More, JavaScript Library">jQuery</a></span></p>
then I tryed to embed this new template in my site/index template, like this:
<div id="footer">{embed="site/footer"}</div>
and the time global variable doesn’t work, infact the result is :
copyright © {current_time format=”%Y”} codenic·com | Tutti i diritti riservati | Powered by Expression Engine & BluePrint & jQuery
I don’t understand…..
Thanks.