Hard-Coded Autonav not working in 8.2

Permalink
Hi

I just updated my website from 5.7.13 to 8.2. That worked well. But unfortunately the hard-coded autonav is not working anymore. I see on subpages the nav. It looks like the autonav doesn't know where it is. I tried also third_level. With top it show me at the current level the navigation correct. But I always want to have the first level. Since I've got two language I don't want to have any custom folders …

$nav = BlockType::getByHandle('autonav');
$nav->controller->orderBy = 'display_asc';
$nav->controller->displayPages = 'second_level';
$nav->controller->displaySubPages = 'all';
$nav->controller->displaySubPageLevels = 'custom';
 $nav->controller->displaySubPageLevelsNum = 1;


How can I change that the main Navi is always the same?

Thanks

wasabili
 
wasabili replied on at Permalink Reply
wasabili
I could solve it. in the end it was "top" in the displayPages. But on every template … That I did forgot …