Take the community feedback survey now.
                AI OnAI Off
            
        Take the community feedback survey now.
 
                
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.
                        