Jump to:

1030 Posts in 805 Topics by 311 members

Forum Module

SilverStripe Forums » Forum Module » Forum Pagination Issue

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 497 Views
  • DeklinKelly
    Avatar
    Community Member
    197 Posts

    Forum Pagination Issue Link to this post

    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!

    497 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.