Change pagination number

Permalink Browser Info Environment
How do change the pagination limit from 10 to something larger?

Type: Discussion
Status: In Progress
zavoodi
View Replies:
lak17a replied on at Permalink Reply
lak17a
Just spent half-day trying to figure out it.
Once again sucked without any success. Concrete5 lacks of good documentation, and code structure are horrible. Page list view gets pagination from it's controller, controller get from core search src, src calls Pagerfanta\View\Template\TwitterBootstrap3Template. And this is the part there I get lost. Even if you find it out, probably you won't be able to extend it without modifying core. It looks like simple task, but unfortunately new C5 can make it in most complicated way:(
Korvin replied on at Permalink Reply
Korvin
Hi Zavoodi,
The $pl variable in the block view is just a straight pagelist, so you can add a template or override the block view and just run:
$pl->setItemsPerPage(100);

to change the pagelist to show 100 entries.

Best wishes,
Korvin

concrete5 Environment Information

not important

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.