Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Pagination: Max per Page / Pages Total

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1281 Views
  • MattKenefick
    Avatar
    Community Member
    13 Posts

    Pagination: Max per Page / Pages Total Link to this post

    I read the tutorial for Pagination but I don't know if I overlooked or not.. but how do you tell the system what the max per page is?

    And after that, is there a variable for # of pages ?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Pagination: Max per Page / Pages Total Link to this post

    Its set in the PHP method NewsArticles()

    $limit = "{$SQL_start},2"

    That line says from the start value (which changes depending on what page your on) then get 2 items. If you want more / less items you can edit that 2.

    1281 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.