Hardcoded autonav render template
Permalink
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.
The same problem occurs when I want to use my own template. I have put my template in:
application/blocks/autonav/templates/bootstrap/view.php
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?
Thank
Rik
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.
<?php $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:
application/blocks/autonav/templates/bootstrap/view.php
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?
Thank
Rik
Check thishttp://www.concrete5.org/community/forums/5-7-discussion/hardcode-s...
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:
https://github.com/concrete5/concrete5-5.7.0/pull/1364...
Otherwise this should be released today in 5.7.1.
https://github.com/concrete5/concrete5-5.7.0/pull/1364...
Otherwise this should be released today in 5.7.1.
thx for the replies I will take a look at it.
5.7.1 Works thanks :)
nvm this post. did not work