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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Break apart ul list


Go to End


3 Posts   1437 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