21281 Posts in 5729 Topics by 2600 members
General Questions
SilverStripe Forums » General Questions » Use content from About Us page on a section of Homepage
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 1247 Views |
-
Re: Use content from About Us page on a section of Homepage

15 October 2010 at 6:56pm
Hi again!
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?
-
Re: Use content from About Us page on a section of Homepage

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.
| 1247 Views | ||
| Go to Top |

