Override pagination

Ask questions about FlatPress themes, present your themes, request new themes.
Post Reply
wjar
Posts: 10
Joined: Sun Jun 29, 2025 3:07 pm

Override pagination

Post by wjar » Sun Nov 02, 2025 7:50 am

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

User avatar
fraenkiman
Posts: 378
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Override pagination

Post by fraenkiman » Fri Nov 07, 2025 9:34 pm

Hello Wolfgang,

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).
Screenshot 2025-11-07 223238.png
Screenshot 2025-11-07 223238.png (6.42 KiB) Viewed 165 times
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.

Code: Select all

$flatpress ['maxentries'] // is used for display in the backend form (admin/panels/config/admin.config.tpl)
Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests