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>
4

2 回答 2

0

这是解决方案:

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

body {

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

}

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

{parentTitle}

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

...

希望这会帮助你。

TC

桑杰

于 2015-04-29T11:29:24.410 回答
0

使用 <f:debug>{items}</f:debug>. 应该有父节点名称。

于 2014-04-24T16:55:44.913 回答