Hard Code Page List

Permalink
I want to hardcode a page list into a template similar to how you do it with autonav but I can't find where the parameters or settings are that is needed to do it

$sauAsideNav = BlockType::getByHandle('autonav');
$sauAsideNav->controller->orderBy = 'display_asc';
$sauAsideNav->controller->displayPages = 'top';
$sauAsideNav->controller->displaySubPages = 'all';
$sauAsideNav->controller->displaySubPageLevels = 'custom';
$sauAsideNav->controller->displaySubPageLevelsNum = 1;
$sauAsideNav->render('templates/sau_aside/view');

 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl