I was following this tutorial and came across a problem: https://wiki.typo3.org/T3Doc/Fluidtemplate_by_example#The_Layout-Switch
The partial should be rendered twice. However, only the first partial is rendered. The second one, having the "lib.menu" as argument, is not rendered.
Template:
<f:section name="pageInfoBoxes">
<f:render partial="Colorbox" arguments="{boxHeader : 'Abstract', boxContent : '{data.title}', boxColor : 'blue'}" />
<f:render partial="Colorbox" arguments="{boxHeader : 'Subpages', boxContent : '{f:cObject(typoscriptObjectPath:'lib.menu')->f:format.raw()}', boxColor : 'red'}" />
</f:section>
Partial (colorbox.html):
<div class="box box-{boxColor}">
<h3>{boxHeader}</h3>
<div class="contains">
{boxContent}
</div>
</div>
Layout:
<header>
<h1>
<f:link.page pageUid="67" title="Nuremberg Shop">Nuremberg Shop</f:link.page>
</h1>
<f:render section="topMenu" />
</header>
<div class="row">
<div class="span8">fileadmin/.../Layouts/
<f:render section="content"/>
</div>
<div class="span4">
<f:if condition="{contentRight}">
<f:then><f:render section="contentRight"/></f:then>
<f:else><f:render section="pageInfoBoxes"/></f:else>
</f:if>
</div>
</div>
<footer>
<!-- here some stuff for footer... -->
</footer>
I can't figure out why this line is not rendered correctly:
<f:render partial="Colorbox" arguments="{boxHeader : 'Subpages', boxContent : '{f:cObject(typoscriptObjectPath:'lib.menu')->f:format.raw()}', boxColor : 'red'}" />
I tried different syntaxes, with no luck.
<f:render partial="Colorbox" arguments="{boxHeader : 'Subpages', boxContent : '{pages -> f:cObject(typoscriptObjectPath: 'lib.menu')}', boxColor : 'red'}" />? - Heinz Schilling