Page_List second level ?

Permalink
Is there a way to make PAGE_LIST list pages under more then +1 level ? It seem to display only one level under but not my second levels pages.

Thank you

olacom
 
olacom replied on at Permalink Reply
olacom
Having these controller on page_list would be very nice:

$bt->controller->displaySubPages = 'all';
$bt->controller->displaySubPageLevels = 'custom';
$bt->controller->displaySubPageLevelsNum = '1';
splash6 replied on at Permalink Reply
I'm looking for an answer to the same question. Is this something that is easily possible?
Jdial replied on at Permalink Reply
Jdial
Auto nav settings edit
"Sub-Pages to Display" = Relevant sub pages.
"Sub-Page Levels" = Display all
This will show all of the pages below your main.
but not unless your on the page that its a sub of...
Make sense?
Hope so good luck!
jordanlev replied on at Permalink Reply
jordanlev
Not in the current version of C5. I submitted a patch to the github repo that adds this functionality. If you want to patch your core system in the meantime to make it do this, you can edit concrete/blocks/page_list/controller.php, find this line:
$pl->filterByParentID($cParentID);

...and replace it with this:
$pl->filterByPath(Page::getByID($cParentID)->getCollectionPath());


Note that there is no option to set the number of sublevels -- this will search all children pages of the selected page.