Editing displayPaging() pagination
Permalink
Hi
I am using a ajax page list block and at the bottom of the php file it outputs the pagination
The html looks like:
However, I don't like the html for this and would like to change it. What's the best/easiest way to do this?
I really just want to load the next series of pages with some html like:
I am using a ajax page list block and at the bottom of the php file it outputs the pagination
The html looks like:
<div class="ccm-pagination"> <span class="ccm-page-left">« Previous</a></span> <span class=" numbers">1</a></span><span class=" numbers">2</span><span class="currentPage active numbers"><strong>3</strong></span> <span class="ccm-page-right"> <span class="ltgray">Next »</span></span> </div>
However, I don't like the html for this and would like to change it. What's the best/easiest way to do this?
I really just want to load the next series of pages with some html like:
<span>Load more</span>
Hi
Thanks for your response.
I am using 5.6, I am not sure if this applies. I am not that familiar with code.
Basically, the page_list file sets up the pagination:
and then outputs it
As I said I really just want it to output a div that can show more of the available page in the page list. Any help is greatly appreciated.
Thanks
Josh
Thanks for your response.
I am using 5.6, I am not sure if this applies. I am not that familiar with code.
Basically, the page_list file sets up the pagination:
/* * Set up pagination and retrieve pages */ $paginate_list = $row['paginate']; $num = (int) $row['num']; $pl->setItemsPerPage($num); if ( $paginate_list == 1 ) { $current_page_get_var = 'ccm_paging_p_b' . $bID; $current_page = intval( $_GET[$current_page_get_var] ); // Page of results requested in query string $current_page = empty($current_page) ? 1 : $current_page; // PageList object returns this page of results $pages = $pl->getPage($current_page); } else { $pages = $pl->getPage(1); }
and then outputs it
As I said I really just want it to output a div that can show more of the available page in the page list. Any help is greatly appreciated.
Thanks
Josh
Have you reviewed the following tutorial?
Styling the pagination - 5.7
https://documentation.concrete5.org/tutorials/styling-the-pagination...