Pagination - limit number of pages displayed
How to limit number of items/page numbers in pagination list ( I don't need to have it all listed, just i.e. five closest to the current page)?
Quote:
1 2 3 4 5 6 7 NEXT LAST
PREVIOUS 1 2 3 4 5 6 7 NEXT LAST
replace with
Quote:
1 2 3 4 ... 7 NEXT LAST
etc.
Re: Pagination - limit number of pages displayed
Try to solve this by modifying pagination.xhtml or by CSS. But the amount is already hardcoded limited to 7.
Re: Pagination - limit number of pages displayed
Quote:
Originally Posted by Andreas
Try to solve this by modifying pagination.xhtml or by CSS. But the amount is already hardcoded limited to 7.
To 7? That is just fine for purpose... I supposed that some modification of pagination.html was needed, but just wanted to check is there some tips and tricks. Thanks anyway.
Re: Pagination - limit number of pages displayed
The only way to adjust the number of pages to be displayed in pagination will be setting another value in https://github.com/contao/core/blob/mas ... n.php#L134 - but this won't be safe for updates.
Carolina.