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

<?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

digievo
 
12345j replied on at Permalink Reply
12345j
well you could just add another block in the header nav, the second being auto nav and just moving it. or you could just use the same code just like
<?php 
$a = new Area('Header Nav 2');
$a->display($c);
?>

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.
jordanlev replied on at Permalink Reply
jordanlev
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...