How to use an advanced pager for the listers

crdate : 2008/03/06

by : Loredana Zeca

 in : Tutorial

Here you can find out how to configure an advanced pager for renderlet:LISTER

If you want to show an advanced pager for the renderlet:LISTER, you must then specify some important information.

Into the XML file, you must specify:

  1. the template file
  2. the number of rows per page
  3. the number of page to show before and after the current page

Example:

<pager>

    <template

path="EXT:ameos_t3con07/res/templates/test-lister.html"

subpart="###mylisterpager###" />

    <rows perpage="2" />

    <window>2</window>

</pager>

Into the HTML file, you must create the following subparts, if you need it:

  1. ###LINKFIRST### which shows a link to the first page from lister
  2. ###LINKLAST### which shows a link to the last page from lister
  3. ###LINKPREV### which shows a link to the previous page
  4. ###LINKNEXT### which shows a link to the next page
  5. ###WINDOW### which contains a list of links including all the page numbers before and after the current page in concordance with the configurations from the point 3 of XML file.

Finally, you will get this:

The entire code is available here:

« Back to list