[Neos] Subitems in Menu
Aske Ertmann
aske at moc.net
Tue Jan 20 22:08:24 CET 2015
Hi Patric
Are they rendered if you don’t override the template? If so copy the default template and trace your error back that way..
Hope it helps.
Cheers,
Aske
> On 20 Jan 2015, at 19:09, Patric Eckhart <mail at patriceckhart.com> wrote:
>
> I have created a menu with the following TypoScript and template.
> But the subitems are not displayed. The root menu items are displayed.
>
> ---Fluid Template---
> {namespace neos=TYPO3\Neos\ViewHelpers}
> <f:render section="itemList" arguments="{items: items, site: site}" />
>
> <f:section name="itemList">
>
> <f:for each="{items}" as="item" iteration="menuItemIterator">
> <nav>
> <strong>{item.label}</strong>
> <f:render section="subList" arguments="{items: item.subItems}" />
> <f:if condition="{item.subItems}">
> <f:render section="subList" arguments="{items: item.subItems}" />
> </f:if>
> <br />Unterbereiche folgen
> </nav>
> </f:for>
>
> </f:section>
>
> <f:section name="subList">
> <f:for each="{items}" as="item">
> <neos:link.node node="{item.node}">{item.label}</neos:link.node>
> </f:for>
> </f:section>
> ---Fluid Template---
>
> ---Typoscript---
> footerMenu = Menu {
> entryLevel = 1
> templatePath = 'resource://MyPackage.Website/Private/Templates/TypoScriptObjects/FooterMenu.html'
> }
> ---Typoscript---
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
More information about the Neos
mailing list