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
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
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
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
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?
Maybe I'm misunderstanding what you are asking?
If you want to add a nav in the footer you can do this
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.