ez.no / ezpublish / documentation / incoming / setting several variables in a section
These documentation pages are no longer maintained. Please visit the new documentation site.
This can be used if you need to set several variables in the pagelayout.tpl depending on sections (for different languages etc.)
One important thing to notice is that each set only takes one variable, several in each will fail.
{let a=1 b=2 c=3}
{section show=$node.object.section_id|eq(1)}
{set a=4}
{set b=5}
{set c=6}
{/section}
{section show=$node.object.section_id|eq(2)}
{set a=7}
{set b=8}
{set c=9}
{/section}
{/let}
Comments