0

How to get parent menu name in typo3-neos

is there any solution ?

> <f:render section="itemList" arguments="{items: items, site: site}" />
> 
>   <ul class="nav nav-pills nav-justified">
>     <f:for each="{items}" as="item" iteration="menuItemIterator">
>       <f:if condition="{menuItemIterator.cycle} != {menuItemIterator.total}">
>         <li class="{item.state}">
>            <neos:link.node node="{item.node}">{item.label}
>         </li>
>       </f:if>
>    </f:for>
>   </ul>
> </f:section>
Jainish
  • 149
  • 1
  • 5

2 Answers2

0

use <f:debug>{items}</f:debug>. There should be parent node name.

Desh
  • 175
  • 2
  • 10
0

Here is the solution:

1. TypoScript > /Packages/Sites/Your.Package/Resources/Private/TypoScript/Root.ts:

body {

  ${q(node).parent().property('title')}

}

2. HTML Template > /Packages/Sites/Your.Package/Resources/Private/Templates/Page/Default.html

{parentTitle}

{parts.leftMenu -> f:format.raw()}

...

Hope this will help you.

TC

Sanjay

VadymVL
  • 5,366
  • 3
  • 26
  • 41