stezkoy / flarum-pagify
Page-number pagination for the discussion list and post stream in Flarum.
Package info
github.com/Stezkoy/flarum-pagify
Language:JavaScript
Type:flarum-extension
pkg:composer/stezkoy/flarum-pagify
Requires
- php: ^8.3
- flarum/core: ^2.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-09 17:19:52 UTC
README
A Flarum extension that replaces "Load More" / infinite scrolling with numbered pagination for the discussion list, the post stream and the user post feed.
Features
Discussion List Pagination
Replaces the "Load More" button on the index page with a numbered pager.
- Choose the number of discussions per page
- Pick the pager position — above, below or both sides of the list
- Jump straight to a page using the page-number field (type the number and press Enter or the go button)
- Switching pages scrolls you back to the top of the list
Post Stream Pagination
Replaces infinite scrolling inside a discussion with numbered pages.
- Choose the number of posts per page
- Pick the pager position — above, below or both sides of the post stream
- Posts per page applies only when post-stream pagination is enabled — with it off, posts load the standard Flarum way
User Post Feed
Numbered pages for post lists outside discussions — the user profile activity feed and the global posts page.
- Choose the number of posts per page
- Pick the pager position — above, below or both sides of the list
- Works with pagination off too — it sizes each "Load More" batch
Flexible per-Page Counts
Discussions per page and the feed's posts per page also work when pagination is off: they control the size of each "Load More" batch.
Installation
composer require stezkoy/flarum-pagify
Requirements
- Flarum 2.0
- PHP 8.3+
Configuration
All settings are configured in Admin > Extensions > Pagify. Each feature can be toggled on/off independently:
- Paginate the discussion list — numbered pages on the index page
- Discussions per page — page size for the list (also the "Load More" batch size when pagination is off)
- Pager position — where the list pager shows (above / below / both)
- Paginate posts inside a discussion — numbered pages in the post stream
- Posts per page — page size inside a discussion (only when post-stream pagination is on)
- Post pager position — where the post pager shows (above / below / both)
- Paginate the user post feed — numbered pages on the profile activity feed and the posts page
- Posts per page (feed) — page size for the feed (also the "Load More" batch size when pagination is off)
- Feed pager position — where the feed pager shows (above / below / both)
License
MIT