Joomla Templates 112 - Pagination Link Overrides

April 09, 2009

Reading time ~1 minute

The final override we will look at is the pagination override. This override can control the display of items-per-page and the pagination links that are used with lists of information, as shown in the following screenshot.

Screenshot

The rhuk_milkyway template provides a well commented example for this override. The file is found here:

/templates/rhuk_milkyway/html/pagination.php

When the pagination list is required, Joomla will look for this file in the default templates. If it is found it will be loaded and the display functions it contains will be used.

There are four functions that can be used:

pagination_list_footer

This function is responsible for showing the select list for the number of items to display per page.

pagination_list_render

This function is responsible for showing the list of page number links as well at the Start, End, Previous and Next links.

pagination_item_active

This function displays the links to other page numbers other than the current page.

pagination_item_active

This function displays the current page number, usually not hyperlinked.

Advanced Test Driven Development for Node - Part 1

Part 1 of my attempt to port Robert C. Martin's talk '8LU:Advanced Concepts in TDD' to Node. Continue reading

Semantic versioning for retail software

Published on December 11, 2014

Better Grunt files (for organised developers)

Published on December 02, 2014