Jump to main content Jump to doc navigation


It is the chunk for pagination.

<div style="margin-top: 10px; text-align: center;"><div style="margin-top: 10px; text-align: center;">
  [[+pb.link_prev:isnotempty=`<a href="[[+pb.link_prev]]" class="load_page">&larr;&nbsp;Previous page</a>`]]
  <b>[[+pb.current]]</b> from <b>[[+pb.total]]</b>
  [[+pb.link_next:ne=``:then=`<a href="[[+pb.link_next]]" class="load_page">Next page&nbsp;&rarr;</a>`:else=`<a href="[[~[[*id]]]]" class="load_page">To beginning</a>`]]


There is only four simple placeholders.

Placeholder Description
pb.link_prev Link to previous page
pb.link_next Link to next page
pb.current Number of current page
pb.total Total pages

See Also

  1. PageBreaker.PageBreaker
  2. tpl.PageBreaker.ajax
  3. tpl.PageBreaker.navigation