Hi.
I am doing a project in silverstripe .
On one of my section holder page templates display 9 stories.
One of these stories makes up the hero at top and is displayed slightly differently to the others.
At the moment I am using a function HeroNews (below) to get the first story and then displpaying.... This is fine but will pick out the latest story andn then when I use <% control Children %> the story is displayed again in this list.
function HeroNews($num=1) {
$news = DataObject::get_one("ArticleHolder");
return ($news) ? DataObject::get("ArticlePage", "ParentID = $news->ID", "Date DESC", "", $num) : false;
}
.... However I want to be able to mark in CMS which story is set as main story - say with a flag of some kind. and for this story NOT to appear in the main list below.
Does this make sense? Anyone know how I should approach this.
Thanks