Jump to content

Showing all pages in Pagination


strandoo
 Share

Recommended Posts

Hi. I've got a client that wishes to see all the page links in the rendered pagination, without the separator (...). Is this possible? I know the page links may get reeeeally long, but that's what he wants. I know there are optional arguments that can be passed to renderPager(), but I can't see one for removing the separator. Any suggestions folks?

Link to comment
Share on other sites

Hi @strandoo, numPageLinks option should be what you want to set. Set it to 999 and it should be good to go without separator. Description:

https://processwire.com/api/modules/markup-pager-nav/

numPageLinks: Number of links (integer) that the pagination navigation should have. Default: 10

echo $results->renderPager(array(
    'numPageLinks' => 999
));

 

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...