how to add one or more menu bar

Permalink
hi i am new in concrete5
i want to add more than one menu bar in my site, i have use the code
<?php
$a = new Area('Header Nav');
$a->setBlockLimit(1);
$a->display($c);
?>
(Header Nav ) vary 1,2,3 etc.
all are going well, the question is that, how to show diifrent menu like in top i want to show
test1 test2 test3
in footer i want to show
demo1 demo2 demo3

thanx in advance

phpsoftsol
 
mkly replied on at Permalink Reply
mkly
Those are "Areas". Areas are containers for blocks. The 'Header Nav' "Area" contains an 'autonav' block with specific settings to display the menu.

If you want to add a nav in the footer you can do this
<?php
  $a = new Area('Footer Nav');
  $a->setBlockLimit(1);
  $a->display($c);
?>


Then when you "Edit" the page through concrete5 you will see and Area called "Footer Nav".

If you click that an select "Add Block" you can select the "Autonav" block and set it up.

You might want to take a look at the documentation for some more info on how Areas and Blocks work.
phpsoftsol replied on at Permalink Reply
phpsoftsol
Hi thanx for your reply.
I agree with your ans, but if we are using
<?php
$a = new Area('Header Nav');
$a->setBlockLimit(1);
$a->display($c);
?>
then the same result are there
But me want that the menu in header are different and in footer are different
mkly replied on at Permalink Reply
mkly
You create a second Area with a different name and place that where you want that Area to show. 'Footer Nav' is a naming suggestion. Each area with a different name will hold different blocks.

Maybe I'm misunderstanding what you are asking?