How to get list of sub pages

Permalink
Is there a way to return a list of sub pages connected to a page?

ob7dev
 
hutman replied on at Permalink Best Answer Reply
hutman
You should be able to do something like this

$c = Page::getCurrentPage();
$cParentID = $c->getCollectionID();
$pl = new PageList();
$pl->filterByParentID($cParentID);
$pages = $pl->get();