我在扩展 tx_news 中的 widget.paginate 位置有问题,我正在使用 TYPO3 v. 6.1 FLUID/EXTBASE。
我的问题是它默认显示 widget.paginate,在我的列表中的 Templates/News/list.html 中显示 UL 标记。我希望它在 UL 标签之外,我试图移动它,但是它对我的布局进行了一些重大更改,或者根本不起作用。
见页面底部 -在此处输入链接描述
如何在 UL 之外和之后显示分页链接/小部件?
我的模板/新闻/list.html 代码
{namespace n=Tx_News_ViewHelpers}
<f:layout name="General" />
<!--
=====================
Templates/News/List.html
-->
<f:section name="content">
<f:if condition="{news}">
<f:then>
<div class="news-list-view">
<ul class="cbp_tmtimeline {newsItem.type}{f:if(condition: newsItem.istopnews, then: ' topnews')}">
<f:if condition="{settings.hidePagination}">
<f:then>
<f:for each="{news}" as="newsItem">
<f:render partial="List/Item" arguments="{newsItem: newsItem, settings:settings}" />
</f:for>
</f:then>
<f:else>
<n:widget.paginate objects="{news}" as="paginatedNews" configuration="{settings.list.paginate}">
<f:for each="{paginatedNews}" as="newsItem">
<f:render partial="List/Item" arguments="{newsItem: newsItem, settings:settings}" />
</f:for>
</n:widget.paginate>
</f:else>
</f:if>
</ul>
</div>
</f:then>
<f:else>
<div class="no-news-found">
<f:translate key="list_nonewsfound" />
</div>
</f:else>
</f:if>
</f:section>