Wednesday 14 June 2006 1:39:29 am
I just want to be sure a template is loaded only once in a page but if, for example, I include a template into itself, also all templates included by this template are recurrently loaded. I tried to track this using a simple trick (this code for example is in column1.tpl):
{if is_set( $loaded )|not()}
{def $loaded=true}
{include uri='design:column1.tpl'}
{/if}
but is seems that <i>visibility</i> of $loaded variable is limited to this template and when it is reloaded it <i>is_set</i> no more. Any suggestion? Bye g
Stefano Guandalini
http://www.nizan.net
|