【发布时间】:2018-05-11 03:31:27
【问题描述】:
我有一个包含更多类别的新闻。如果我使用 firstCategory,那么我会收到第一个选择的类别作为输出,但这不是我想要的。我想显示新闻项目已标记为的所有类别。我试过了,但没有输出
<f:if condition=“{newsItem.categories}“>
<span class=“news-list-category label label-default test”>
<f:for each=“{categories}” as=“category”>
{category.title}
</f:for>
</span>
</f:if>
【问题讨论】:
-
你能用
<f:for each=“{newsItem.categories}” as=“category”>再试一次吗? -
谢谢,成功了!
标签: typo3 typo3-7.6.x typo3-extensions tt-news