22855 Posts in 9971 Topics by 2805 members
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Page: 1 2
|Go to End|
15 October 2010 at 6:56pm
I have a table in which upcoming events are manually entered, and I want this reflected on another page - but only some of it. So if the site administrator lists 25 items, I don't want them all to come up (the visitor has to go to the actual calendar page for that). Kind of like how the News page from the tutorial only shows the first paragraph via $Content.FirstParagraph perhaps - I want to limit it to say, 5 rows. Any ideas about how I could do this?
15 October 2010 at 7:41pm
There is no easy way to do this, you would have to create a function that was smart enough to scan the html and break the table after 5 <tr> tags and then close the table...
I would investigate using dataobjects for the results instead of just entering them into a table.
Page: 1 2
|Go to Top|