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
FlatPress Coder
Posts: 514
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 528 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
πŸ“ Project blogβ€ƒβ€ƒπŸ“– Docsβ€ƒβ€ƒπŸ˜ Mastodonβ€ƒβ€ƒπŸ“œ Forum RSS feedβ€ƒβ€ƒπŸ“œ Project blog RSS feedβ€ƒβ€ƒπŸ± GitHub  ❀️ Donate

My :de: FlatPress-Blog: https://frank-web.flatpress.org, synced with :elephant: Mastodon

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests