Jump to:

23552 Posts in 19349 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » Break apart ul list

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: 863 Views
  • JoeJoe
    Avatar
    Community Member
    8 Posts

    Break apart ul list Link to this post

    Hi,

    Working with silverstripe for a little while, and it is great!
    For now, i am stucked with a problem.

    I have a user list placed as ul li list;

    <ul>
    <% control user %>

    <li>$Username</li>

    <% end_control%>
    </ul>

    Now i want to break apart this list if there are more than 10 users, so you get more ul lists.
    I think i have to do this within the pagecontroller with php. But i can't think about any solution. Hope somebody can give me a hint to the right direction.

    gr,

    Raack.

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: Break apart ul list Link to this post

    Are you looking for a pagination of your list? ->http://doc.silverstripe.org/doku.php?id=private:recipes:pagination

  • JoeJoe
    Avatar
    Community Member
    8 Posts

    Re: Break apart ul list Link to this post

    Hi baba-papa,

    Thx for the reply and link.
    Yeah it is the same functionality but without the pagination. So all list can be placed on one page.
    So i want to start a new u llist when there are more than 10 users.

    gr,
    Raack

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