Jump to:

23450 Posts in 18899 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Pagination

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 300 Views
  • Arun_India
    Community Member
    18 Posts

    Pagination Link to this post


    1.I want to add pagination to my "Recipie page" which contains recipie titles.

    2.Can i change textbox to textarea in admin side.

    pls some body help me.....


  • DesignerX.com.au
    Community Member
    107 Posts

    Re: Pagination Link to this post

    Hi, Maybe sharing the code can help us help you ;),
    anyway, here is something may help:

    public function JQueryGalleryPagination() {
          $ItemsPerPage = $this->ItemsPerPage ;
          $images = $this->JQueryGalleryItems(null, 'SortOrder');
          $start = (isset($_GET['start'])) ? (int)$_GET['start'] : 0;
          $page = $images->getRange($start ,$ItemsPerPage);
          $page->setPageLimits($start,$ItemsPerPage, $images->count());
          return $page;

    I used this for my gallery, it should work the same for you (with changing the Variable names & fields names to what you need)

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.