Share » Forums » Setup & design » Variable visibility through templates

Variable visibility through templates

Variable visibility through templates

Wednesday 14 June 2006 1:39:29 am - 3 replies

Author Message

Stefano Guandalini

Thursday 15 June 2006 8:40:44 am

HEEEEEEEELP!

I really cannot understand why it works (but it works).

This one:

{set-block scope=global variable=loaded}true{/set-block}
{if is_set( $loaded )}
        {include uri=concat('design:section', $node.object.section_id, '/column1.tpl')}
{/if}

The first time the template is loaded variable $loaded is correctly set, subsequent times it does not.
Is it a <i>feature</i>? (Or a bug?) ;-)

g

Stefano Guandalini
http://www.nizan.net

liu spider

Thursday 15 June 2006 8:03:20 pm

have a look here:
http://ez.no/products/ez_publish/documentation/incoming/persistent_template_variable

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Stefano Guandalini

Friday 16 June 2006 1:03:04 am

Nice try! :-)
Unfortunately $module_result is not available in overridden templates, so it is not useful for me at this time, since I need to know it in a override template.

:-(

g

Stefano Guandalini
http://www.nizan.net

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu