标签: typo3 fluid tx-news
如何在m'y Fluid模板中检查新闻文章是否具有某个父类别?
答案 0 :(得分:1)
也许这会有所帮助:
<f:for each="{newsItem.categories}" as="category"> <f:if condition="{category.parent.uid} == theCatIdYouAreSearchingFor"> do your stuff here... </f:if> </f:for>