22445 Posts in 7015 Topics by 2752 members
|Go to End|
30 January 2009 at 3:32am
I have a number of different pages on my site and inside each section they have there own article holder and articles. Thanks to some searching around the archived forum I've been able to display the articles for each section on their pages, but I would now like to have an overall news feed with displays the latest 5 stories taken from across all the news to go on the homepage.
Is this possible and would anybody be able to give me an idea of how to do it.
Thanks very much in advance,
30 January 2009 at 6:25am
return DataObject::get("NewsArticle",null, "Date ASC", null, 5)
30 January 2009 at 6:36am
Thanks so much.
Seems so obvious now you've written it down. I just don't select the ArticleHolder.
Thanks also for the speedy response, just getting to grips with SilverStripe and the forums are such a useful source of information.
24 February 2009 at 6:50am
Thanks for you help before.
Is it possible to create an RSS link for all news. The tutorial works, but only when you are on an article holder and just for that holder only.
|Go to Top|