<tpl:Pagination>

The tag <tpl:Pagination> allows treating pagination defined on the number of elements (posts) on a page. (review translation, French is not clear)

The content of the block <tpl:Pagination> is only treated if there are at least 2 pages (ie. if the number of published posts is greater than than the number of posts displayed on a page).

Attributes

no_context

This attribute, when set to 1, allows to treat the content of the block <tpl:Pagination> even when there is only one page.

Example

<tpl:Pagination>
  <tpl:PaginationIf end="0">
    <link rel="previous" title="{{tpl:lang previous entries}}" href="{{tpl:PaginationURL offset="1"}}" />
  </tpl:PaginationIf>
  <tpl:PaginationIf start="0">
    <link rel="next" title="{{tpl:lang next entries}}" href="{{tpl:PaginationURL offset="-1"}}" />
  </tpl:PaginationIf>
</tpl:Pagination>

Wiki powered by Dokuwiki.