Hi
Original Source: http://doc.silverstripe.org/old/recipes:page_selection_for_special_menu
I have copied the example menu to create a new footer menu (you know the ones that have Terms and conditions etc... or fancy "functional footers" popular last year )
function topTabbers() {
$whereStatement = "ShowInTabMenu = 1";
return DataObject::get("Page", $whereStatement);
}
But then I have mutiple sites in one login and I need independent "topTabbers" menus for UK and for MN etc...:
So my code needs ParentID= of the level 2 menu item:
function topTabbers() {
$whereStatement = "ShowInTabMenu = 1 AND ParentID=******";
return DataObject::get("Page", $whereStatement);
}
...but how do I get the ParentID of the each site dynamically?
Many thanks.