Skip to the content
Documentation

note on persistent_variable as override

No ratings yet

Note that it dosn't make sense to use persistent_variable as a override for node/view/* templates (since it is generated during the prossing of the node/view/* template), what it is ment for is to be able to override the pagelayout based on the persistent_variable..
Basicly you can have something like this in a node template:

{if $some_value|eq( 'something' )}
{set scope=global persistent_variable='caramba'}
{/if}

And then have a override rule for your page layout like this:

[test_side_layout]
Source=pagelayout.tpl
MatchFile=pagelayout_caramba.tpl
Subdir=templates
Match[persistent_variable]=caramba