Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Forum Module /

Discuss the Forum Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Forum Pagination Issue


Go to End


1554 Views

Avatar
DeklinKelly

Community Member, 197 Posts

16 September 2011 at 9:36am

In Forum.php, I edited the Topics function to display 70 topics at once.

function Topics() {
if(isset($_GET['start']) && is_numeric($_GET['start'])) $limit = Convert::raw2sql($_GET['start']) . ", 70";
else $limit = 70;

The problem is, the pagination links at the bottom go in increments of 10!

When you click on the link for Page 2, it puts &start=10 in the URL instead of &start=70 and it shows way too many pagination links!