Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Paginate

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: 1152 Views
  • Dr0gaz
    Avatar
    Community Member
    37 Posts

    Paginate Link to this post

    Hi guys i want paginte records in my db... but i want first charge pages for html... example

    Page1
    <div class="item">
    <ul>
    <% control getObjects %>
    <li>$pergunta</li>
    <% end_control %>
    </ul>
    </div>

    Page2
    <div class="item">
    <ul>
    <% control getObjects %>
    <li>$pergunta</li>
    <% end_control %>
    </ul>
    </div>

    Page3
    <div class="item">
    <ul>
    <% control getObjects %>
    <li>$pergunta</li>
    <% end_control %>
    </ul>
    </div>

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: Paginate Link to this post

    http://doc.silverstripe.org/sapphire/en/reference/dataobjectset#paging encouragly says FIXME
    and this has not been migrated http://doc.silverstripe.org/private:recipes:pagination

    but you could always checkout how templates\Layout\Page_results.ss as this shows parsing a DataObjectSet (Results) to create pagination

  • Dr0gaz
    Avatar
    Community Member
    37 Posts

    Re: Paginate Link to this post

    if works this

    <% control getObjects.Pages %>
    <div class="item">
    <ul>
    <% control getObjects %>
    <li>$pergunta</li>
    <% end_control %>
    </ul>
    </div>
    <% end_control>
    why dont work?

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