I want to change number of pages displayed in pagination. Currently I have pagination like this:
<< < 1 2 3 4 5 6 7 8 9 10 > >>
I want to display it like this one:
<< < 1 2 ... 9 10 > >>
How to do it?
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.
Sign up to join this communityI want to change number of pages displayed in pagination. Currently I have pagination like this:
<< < 1 2 3 4 5 6 7 8 9 10 > >>
I want to display it like this one:
<< < 1 2 ... 9 10 > >>
How to do it?
This is not exactly what I'm looking for but it's resolved my problem. https://gist.github.com/heesienooi/de010131dce82685bb0f
You need to override the default pagination style with your own code. This is done by copying the link.php and links.php files from /layouts/joomla/pagination to your own template /templates/yourtemplate/html/layouts/joomla/pagination. The new files will be used to display pagination links, instead of the default ones. Now you can modify these to your likning. More about overriding joomla output is found here: https://docs.joomla.org/Understanding_Output_Overrides