Hey,
Have created a menu in my footer content collection via neos backend. The “current” class in my footer menu didn’t appear when visiting (for example) the Impressum page. I have only added ´renderHiddenInIndex = 1´ to my custom ´TYPO3.Neos.NodeTypes:Menu´ prototype.
My custom Menu.ts2
prototype(TYPO3.Neos.NodeTypes:Menu){
renderHiddenInIndex = 1
}
Rendered html:
<nav class=" typo3-neos-nodetypes-menu">
<ul>
<li class="normal">
<a href="/impressum.html">Impressum</a> <!-- this is the current page but the wrong class appear on parent li -->
</li>
<li class="normal">
<a href="/datenschutz.html">Datenschutz</a>
</li>
<li class="normal">
<a href="/kontakt.html">Kontakt</a>
</li>
</ul>
</nav>
Facts:
- My main navigations works without problems
- when adding current.attributes.class = ‘current’ to my Manu.ts2 file the “current” class appears but not on the correct li after visiting another link
Did i forget something?
thanks,
rene