Hello,
in special sub templates I want to override the pagination feature, so that all entries e.g. of a category should be listed on one page instead of clicking on "next page" after 10 entries.
So I tried to set the variables $flatpress.maxentries and $fp_config.general.maxentries (BTW: why are there 2 variables for the same feature?) temporarily to e.g. 1000, but there was no effect on the pagination feature. I still have to click on "next page" after 10 entries.
Is there any solution available?
THX
Wolfgang
Override pagination
- fraenkiman
- Posts: 378
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: Override pagination
Hello Wolfgang,
the core uses it as the default number of posts per page, default 10, can be 1000, for example.
Please note: FlatPress 1.4.1 is not optimized to read 1000 posts per page. The response time increases significantly. With very slow web servers, you will run into a timeout (default 120s) with 1000 entries per page. Try it with 100.
Best regards,
Frank
the core uses it as the default number of posts per page, default 10, can be 1000, for example.
Code: Select all
$fp_config ['general'] ['maxentries'] // is the relevant setting (settings.conf.php).Code: Select all
$flatpress ['maxentries'] // is used for display in the backend form (admin/panels/config/admin.config.tpl)Frank
My
Who is online
Users browsing this forum: No registered users and 0 guests