So I need to use the "isChildPage" viewhelper in fluid. However it does not work, and if I run
<f:debug>{item}</f:debug>
For the item/page in question I get nothing for childpage. Its sibling viewhelper "hasSubPage" however works fine, and both classes are located in the same Page folder in the vhs extension.
So I am at a loss.
My use of the code:
<v:menu pageUid="{parent}" entryLevel="2" class="sidebar-nav" includeSpacers="1">
<f:for each="{menu}" as="item">
<a href="{item.link}" class=" {f:if(condition: item.isChildPage, then: 'hidden', else:'nope')}">
isChildPage
has a different meaning thanhasSubPage
. each page which is not root (uid = 0) should beisChildpage
, - Bernd Wilke πφ