TYPO3 - 将tx-news类别添加到eventnews列表项

时间:2017-06-28 09:32:15

标签: typo3 fluid tx-news

我从tx-news扩展名中插入<f:if condition="{newsItem.categories}"> <f:for each="{categories}" as="category"> <f:if condition="{category.shortcut}"> <f:then> <f:link.page pageUid="{category.shortcut}"> {category.title} </f:link.page> </f:then> <f:else> <span>{category.title}</span> </f:else> </f:if> </f:for> </f:if> 列表视图数据时遇到问题 - 例如:类别标题。我试过这个代码,但它不起作用:

<f:section name="listItem">
    <div class="col-md-12" style="border: 1px solid #ccc;">
        <strong>
            <n:link newsItem="{n}" settings="{settings}">{n.title}</n:link>
            | {f:format.date(date:n.datetime.date,format:'%d.%m')}</strong>
        <ul>
            <f:if condition="{n.organizer}">
                <li><strong>
                    <f:translate key="organizer" extensionName="eventnews" />
                </strong>: {n.organizer.title}
                    <small>(uid: {n.organizer.uid})</small>
                </li>
            </f:if>
            <f:if condition="{n.location}">
                <li><strong>
                    <f:translate key="location" extensionName="eventnews" />
                </strong>: {n.location.title}
                    <small>(uid: {n.location.uid})</small>
                </li>
            </f:if>
            <f:if condition="{n.eventEnd}">
                <li>
                    <strong>
                        <f:translate key="event_end" extensionName="eventnews" />
                    </strong>: {f:format.date(date:n.eventEnd.date,format:'%d.%m.%Y')}
                </li>
            </f:if>
        </ul>
    </div>
</f:section>

有关如何显示此数据的任何建议吗?

整个列表视图模板如下所示:

exponential.model <- lm(log(val)~ a) # compute model

0 个答案:

没有答案