Manual browse menus (two-button navigation)

Rendering a browse menu with prev/next which detects first and last page. (2 Buttons only)

Description BrowseMenu
Author misterboe
Creation date 2014-09-03T10:32:44.000Z
Extensions
  1. FluidTYPO3.Fluidpages
  2. FluidTYPO3.Vhs
Tags
  1. Pages
  2. ViewHelpers
Files
  1. BrowseMenu.html
<div xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
<f:section name="BrowseMenu">
<v:page.menu.browse>
<f:if condition="{menu.prev}">
<f:then>
<a href="{menu.prev.link}" class="prev">prev</a>
</f:then>
<f:else>
<a href="{menu.last.link}" class="last">last</a>
</f:else>
</f:if>
<f:if condition="{menu.next}">
<f:then>
<a href="{menu.next.link}" class="next">next</a>
</f:then>
<f:else>
<a href="{menu.first.link}" class="first">first</a>
</f:else>
</f:if>
</v:page.menu.browse>
</f:section>
</div>
view raw BrowseMenu.html hosted with ❤ by GitHub