WSN Classifieds
Pagination
Pagination
By Paul

Pagination applies to many different pages, and notably can be appled to all toplists.

Your "Pagination" template controls the basic look of pagination. The "Single Page" template allows the more exact customization of what each page number looks like.

Standard pagination template variables:
{NUMPAGES}: the total number of pages in the list
{NUMITEMS}: the total number of items in the list
{PREVIOUS}: previous pages
{CURRENTPAGE}: current page number
{NEXT}: subsequent pages
{N_PREVIOUS}: previous pages, in 10-20 20-30 format showing item numbers on the page
{N_NEXT}: next pages, in 10-20 20-30 format
{N_CURRENTPAGE}: current page in 10-20 format
{PREVIOUSPAGE}: the previous page's number, or false if no previous
{NEXTPAGE}: the next page's number, or false if no more
{PREVIOUSPAGEURL}: url of the previous page
{NEXTPAGEURL}: url of the next page
{PAGEOPTIONS}: <option value...> content for a dropdown selector of pages

If you want to have "Previous Page" and "Next Page" links, a pagination template like this:
<p>Page: <IF {PREVIOUSPAGE}><a href="{PREVIOUSPAGEURL}">Previous</a></IF> {PREVIOUS} <b>{CURRENTPAGE}</b> {NEXT} <IF {NEXTPAGE}><a href="{NEXTPAGEURL}">Next</a></IF> </p>


You can choose in Admin -> Settings-> General to only show the next and previous x pages, in order to avoid clutter if there are dozens or hundreds of pages in the list.

You can use pagination for any toplist by placing {TOPLIST5PAGINATION} in the template, where 5 is replaced with the actual toplist's number.

Also note that you can choose the number of pages to show under Admin -> Settings -> General... you can select to show the next and previous X pages plus first and last.

Rating:


0/5 based on 0 votes. The median rating is 0.

Submitted: 07/14/04 (Edited 05/10/08)

Description: Information about customizing pagination.

Views: 1887 views. Averaging 1 views per day.
In the most recent 30 day period, there've been 1 views.

Previous Article | Next Article

Features Showcase Purchase Services Resources Support