Monday 15 September 2003 7:47:50 am
Sure, try to keep it as simple as possible:
Approach No 1:
pagelayout.tpl:
{let bg=fetch(content,list,...)}
{default color_1=bg.0.data_map.color_1.data_text}
<html>
<body>
this works: {$color_1} is my color.
{include uri='mynav.tpl'} {* below *}
{$module.result}
</body>
</html>
{/default} {/let}
mynav.tpl: this works too {$color_1} or {$#color_1}
---------------------------
Approach No 2:
pagelayout.tpl
<html>
<body>
{include uri='someincludes.tpl'}
{$color_1} and {$#color_1} are not there!
{$module.result}
</body> </html>
someincludes.tpl:
{let bg=fetch(content,list,...)}
{default color_1=bg.0.data_map.color_1.data_text}
{/default} {/let} But whatever happens inside {$module.result}, the color_1 var cannot be accessed. I need them later in override-templates. I'm not sure whether this behaviour is by design, but there must be a way to define global (really global!) variables, no?
Thanks guys! t
|