Hardcoded autonav render template

Hello all,

I have stared working with 5.7. I have hardcoded the autonav in the theme. As template I wanted to use responsive_header_navigation that comes with 5.7. But the template does not get rendered.

$nav = BlockType::getByHandle('autonav');
$nav->controller->orderBy = 'display_asc';
$nav->controller->displayPages = 'top';
$nav->controller->displaySubpages = 'none';
$nav->render('templates/responsive_header_navigation'); //lijkt er op dat de template niet wordt geladen

The same problem occurs when I want to use my own template. I have put my template in:

The code in the view.php is the same as in Concrete 5.6.

Is there something else we need to do in Concrete 5.7 when we want to render a template?



View Replies: View Best Answer
Remo replied on at Permalink Reply
andrew replied on at Permalink Best Answer Reply
I believe this is related to a bug that we just applied a pull request for. If you're comfortable with Github, you can see if this fixes your issue:


Otherwise this should be released today in 5.7.1.
rge replied on at Permalink Reply
thx for the replies I will take a look at it.
rge replied on at Permalink Reply
5.7.1 Works thanks :)
rge replied on at Permalink Reply
nvm this post. did not work