Adding second level menu to template
Permalink
I am wanting to add a second level menu to a theme in the same way that the header nav is added i.e
Does anyone know the equivalent code (if there is any to a second level nav block.
Currently it needs to be added as a autonav block on each and every page. It would nice for the client to not have to do this.
Thanks
<?php $a = new Area('Header Nav'); $a->display($c); ?>
Does anyone know the equivalent code (if there is any to a second level nav block.
Currently it needs to be added as a autonav block on each and every page. It would nice for the client to not have to do this.
Thanks
You could also hard-code the autonav block into your template -- this way it will always appear on every page no matter what (and cannot be edited or removed by your client).
See:
http://www.concrete5.org/documentation/how-tos/primer-auto-nav-bloc...
(Scroll down to the "Embedding the Auto-Nav Directly into Templates" towards the bottom).
Some more forum posts on the topic as well:
http://www.concrete5.org/community/forums/themes/perist-autonav-tem...
http://www.concrete5.org/index.php?cID=11798...
http://www.concrete5.org/community/forums/themes/hard-coding_dynami...
http://www.concrete5.org/community/forums/customizing_c5/determinin...
See:
http://www.concrete5.org/documentation/how-tos/primer-auto-nav-bloc...
(Scroll down to the "Embedding the Auto-Nav Directly into Templates" towards the bottom).
Some more forum posts on the topic as well:
http://www.concrete5.org/community/forums/themes/perist-autonav-tem...
http://www.concrete5.org/index.php?cID=11798...
http://www.concrete5.org/community/forums/themes/hard-coding_dynami...
http://www.concrete5.org/community/forums/customizing_c5/determinin...
you may want to edit it under dashboard/pages/page types and then select the one you want and click edit. This whole process it isn't actually that hard to do, but maybe i'm unclear on what you want.