Jump to:

23376 Posts in 18214 Topics by 2867 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 1541 Views
  • doubleedesign
    Avatar
    Community Member
    19 Posts

    Re: Use content from About Us page on a section of Homepage Link to this post

    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?

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Use content from About Us page on a section of Homepage Link to this post

    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.

    1541 Views
Page: 1 2
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.