eZ Community » Forums » General » Assign {section} to a variable
expandshrink

Assign {section} to a variable

Assign {section} to a variable

Thursday 11 September 2003 3:23:38 pm - 2 replies

There's no obivous {section assign="myar"}, but is there some workaround for assigning an entire section contents to a variable instead of pitting is out?

Thanks!
t

Thursday 11 September 2003 6:14:05 pm

Use set-block.

{set-block scope=root variable=myvar}
Hi there! I am a test!
{/set-block}

Now you have the string in {$myvar}.

Thursday 11 September 2003 6:31:40 pm

Perfect, thanks!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from