Hi guys,
I need your help once again (Sorry, but I’m not a fan of the documentation).
I want to render a submenu, but only if the node-property (declared in yaml-file) hasSubMenu
is true
.
<Neos.Fusion:Loop items={props.menuItems}>
<li class={(item.state + " li__level--one" + (item.subItems && item.property.hasSubMenu? " hasSub" : ""))}>
<Neos.Neos:NodeLink node={item.node} @if.hasSubMenu={!item.property.hasSubMenu} attributes.class="navLink">
{item.label}
</Neos.Neos:NodeLink>
<span class="navLink openSub" @if.hasSubMenu={item.property.hasSubMenu}>{item.label}</span>
<div class="nav__level--two__container" @if.hasSubMenu={item.property.hasSubMenu}>
<ul class="nav__level---two">
</ul>
</div>
</li>
<Neos.Fusion:Loop
Is there any possibilty to get the node-property hasSubMenu
from the items?
This would also be great to display the meta-description (or any other custom properties) in the submenu.
Thanks in advance