Latest Register Log In

+ Advanced Search

Pagination

Pagination
By
07/14/04 (Edited 03/11/14)

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. As of version 8.0.0, the pagination is a styled list -- search the stylesheet (Admin Panel -> Themes -> Manage Templates -> Stylesheet) for "pagination" to find the customizable styling. For most people, the changes you want can be accomplished in the stylesheet without editing the template. The most likely template change you'd want to make is the removal of the next/previous/first/last links.

Standard pagination template variables you can use:
{NUMPAGES}: the total number of pages in the list
{NUMITEMS}: the total number of items in the list
{PREVIOUS}: previous pages (linked)
{CURRENTPAGE}: current page number (plain, unlinked)
{NEXT}: subsequent pages (linked)
{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
{FIRSTPAGE}: true if we should show a first page link, meaning we're not currently on the first page (added in 8.0.0)
{LASTPAGE}: true if we should show a last page link, meaning we're not currently on the last page (added in 8.0.0)
{FIRSTPAGEURL}: url of the first page (added in 8.0.0)
{LASTPAGEURL}: url of the last page (added in 8.0.0)
{PREVIOUSPAGEURL}: url of the previous page
{NEXTPAGEURL}: url of the next page
{PAGEOPTIONS}: <option value...> content for a dropdown selector of pages

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.




Description Information about customizing pagination.
Rating
Views 2237 views. Averaging 0 views per day.