Site icon Osclass Documentation & Knowledge Base

Change pagination menu

Pagination menu can be customized in several ways. There’re a few functions very handy for this.

osc_search_pagination()

This function add the default zero-configuration pagination for the search pages.

osc_comments_pagination()

This function add the default zero-configuration pagination for the item’s comments pages.

osc_pagination()

This is the base function. Previous functions call internally this function. If no-parameter is passed it’s the same as osc_search_function.

Parameters

HTML Structure

Note: v3.0 or higher The html structure of the pagination is the following one:

<ul>
    <li><span class="searchPaginationSelected list-first">1</span></li>
    <li><a rel="nofollow" href="http://domain.tld/category/2" class="searchPaginationNonSelected">2</a></li>
    <li><a rel="nofollow" href="http://domain.tld/category/3" class="searchPaginationNonSelected">3</a></li>
    <li><a rel="nofollow" href="http://domain.tld/category/4" class="searchPaginationNext">4</a></li>
    <li><a rel="nofollow" href="http://domain.tld/category/5" class="searchPaginationLast list-last">5</a></li>
</ul>