Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Resources/Private/Partials/Pager/Default.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{namespace extlist=Tx_PtExtlist_ViewHelpers}
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
<extlist:comment>
<!--
Template for rendering a Pager.
Expand All @@ -10,6 +11,7 @@
@package YAG
@author Michael Knoll <mimi@kaktusteam.de>
@author Daniel Lienert <typo3@lienert.cc>
@author Kai Braunias <info@brightfocus.de>
-->
</extlist:comment>

Expand All @@ -29,6 +31,11 @@
<li class="previous">
<extlist:link.action controller="{controller}" action="{action}" arguments="{extlist:namespace.GPArray(object:'{pagerCollection}' arguments:'page:{pager.previousPage}')}"><span>&lt;</span></extlist:link.action>
</li>
<f:if condition="{pager.currentPage} != {pager.previousPage}">
<v:page.header>
<link rel="prev" href="{f:uri.action(controller:"{controller}", action:"{action}", arguments:"{extlist:namespace.GPArray(object:'{pagerCollection}' arguments:'page:{pager.previousPage}')}")}" />
</v:page.header>
</f:if>
</f:if>

<f:for each="{pager.pages}" key="i" as="pageNumber">
Expand All @@ -41,6 +48,11 @@
<li class="next">
<extlist:link.action controller="{controller}" action="{action}" arguments="{extlist:namespace.GPArray(object:'{pagerCollection}' arguments:'page:{pager.nextPage}')}"><span>&gt;</span></extlist:link.action>
</li>
<f:if condition="{pager.currentPage} != {pager.nextPage}">
<v:page.header>
<link rel="next" href="{f:uri.action(controller:"{controller}", action:"{action}", arguments:"{extlist:namespace.GPArray(object:'{pagerCollection}' arguments:'page:{pager.nextPage}')}")}" />
</v:page.header>
</f:if>
</f:if>

<f:if condition="{pager.showLastLink}">
Expand Down Expand Up @@ -68,4 +80,4 @@
</div>

</f:if>
</div>
</div>