Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

Break apart ul list


Reply


3 Posts   886 Views

Avatar
JoeJoe

Community Member, 8 Posts

1 April 2010 at 2:12am

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.

Avatar
baba-papa

Community Member, 279 Posts

1 April 2010 at 2:22am

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

Avatar
JoeJoe

Community Member, 8 Posts

2 April 2010 at 3:12am

Edited: 02/04/2010 3:34am

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