Hello,
I have set four main menu items as Blogtree page type, and under each blog tree I have other blogholders. I'm looking for a way to show the latest entries on the homepage exactly the same as what you see on blogTree page.
I was trying something like the following but it returned only entries from first blogHolder:
function LatestNews($id) {
$news = DataObject::get_one('BlogTree', "ParentID = $id");
return ($news) ? DataObject::get("BlogEntry", "ParentID = $news->ID", "Date DESC", "", 1) : false;
}
I would appreciate any help.. thanks