ViewHelper Documentation
section
A ViewHelper to declare sections in templates for later use with e.g. the RenderViewHelper.
= Examples =
<f:section name="someSection">This is a section. {foo}</f:section>
<f:render section="someSection" arguments="{foo: someVariable}" />
<f:section name="mySection">
<f:for each="{myMenu}" as="menuItem">
<li>
{menuItem.text}
<f:if condition="{menuItem.subItems}">
<f:render section="mySection" arguments="{myMenu: menuItem.subItems}" />
</f:if>
</li>
</f:for> </f:section> <f:render section="mySection" arguments="{myMenu: menu}" />
<ul>
<li>menu1a</li>
<li>menu1b</li>
</ul>
[...] (depending on the value of {menu})
Arguments
name string, required
Name of the section