AI OnAI Off
public static PageDataCollection GetNavChildren( PageReference parentPage )
{
PageDataCollection navChildren = new PageDataCollection();
foreach( PageData page in Global.EPDataFactory.GetChildren( parentPage ))
{
if( page.VisibleInMenu )
navChildren.Add( page );
}
return navChildren;
}
And you if you want to start from the site homepage, pass Configuration.StartPage as the input parameter.