【发布时间】:2017-03-16 05:27:47
【问题描述】:
i override Templates/Styles/TWB/Templates/Category/List.html要具有类别菜单的行为完全作为介绍包中的侧栏菜单(仅在选中主子菜单时显示)。
如果我添加静态模板“News Styles Twitter Bootstrap(news)”就差不多了,只要选择了主类,打开子类也不难(我需要海量的类/子类别),但它也应该在选择子类别时打开:
...
<f:if condition="{0:category.item.uid,1:category.item.uid} == {0:overwriteDemand.categories,1:category.children.{overwriteDemand.categories}.parent}">
<f:if condition="{category.children}">
<f:render section="categoryTree" arguments="{categories: category.children,overwriteDemand:overwriteDemand,class:''}" />
</f:if>
</f:if>
...
我不知道如何使用 {overwriteDemand.categories} 作为键来匹配值...谁能指出正确的语法
更新:我尝试将自定义 ViewHelper 应用为 this post suggests,但使用 TYPO3 V7.6.16 时遇到错误 should be compatible with TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper::render(),因此无法尝试使用变量 overwriteDemand.categories换一种方式……
【问题讨论】:
标签: typo3 fluid typo3-7.6.x tx-news