<tpl:PaginationIf>

Test the current state of pagination and only reads the underlying code if the condition defined by the attributes is verified.

Attributes

start

This attribute tests if the current page is or isn't the first page.

  • start="1" → the condition will be verified if the current page is the first page
  • start="0" → the condition will be verified if the current page is not the first page

end

This attribute tests of the current page is the last page. Cet attribut teste si la page courante est la dernière page.

  • end="1" → the condition will be verified if the current page is the last page
  • end="0" → the condition will be verified if the current page is not the last page

Examples

<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.