WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Multiple menus problem main navigation
(1/1)
dennywii:
Hello,
I just created a site with multiple menus and so far it works fine.
All the menus are shown correctly. However, if I click on a non main-menu link (let's call it my second menu), i.e. disclaimer, then my "first menu" disappears and it gets excahnged with my second menu (to make it more clear: my first navigation consisted of: home, projects, help, etc. and my second navigation consists of disclaimer, etc. --> If I click on disclaimer, (home, projects, help, etc.) disapperas and disclaimer shows up on that navigation???
I'm using the Allcss2 template with dropdown-menus (if it helps). I have no idea how to approach that problem.
I was looking in the forum to solve the problem but I couldn't find it.
Thank you for any help I can get.
dennywii
marathoner:
A little more info would be helpful. ALLCSS2 does not offer multiple menu's by default. What did you use...show_menu2? What syntax?
dennywii:
Oh yes, that's true. I'm sorry. :-)
I am using show_menu2 and I added the multiple menus myself.
That's what I added into my info.php:
--- Code: --- INFO.PHP
// Definition of the menus
$menu[1] = 'Hauptnavigation'; //main navigation
$menu[3] = 'Navigation links'; // left navigation
$menu[4] = 'Navigation unten'; //navigation at the bottom
--- End code ---
And the parts of the menus I added into my index.php look like that:
--- Code: ---INDEX.PHP
Part 1:
<div id="navContainer">
<div id="nav" class="clearfix">
<?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul
id="header_menu" class="menu">'); ?><br />
</div><!-- end nav -->
</div>
Part 2:
<div id="contentContainer">
<?php if(SHOW_MENU) { ?>
<div id="sideColumn">
<?php show_menu2(3, SM2_ROOT, SM2_START, SM2_ALL, '<span> [a][menu_title]</a><br />', '</span>', '', ''); ?>
Part 3:
<div id="footer" class="clearfix">
<div id="baker_footer">
<?php page_footer(); // Get Info from WB Settings "Footer" ?>
<?php show_menu2(4, SM2_ROOT, SM2_START, SM2_ALL, '<span>| [a][menu_title]</a>', ' </span>', '', ''); ?>
</div><!-- end baker_footer -->
</div><!-- end footer -->
--- End code ---
I hope that helps. I really appreciate any help I can get.
dennywii
BerndJM:
Hi,
just a quick first idea:
in your info.php you use $menu[1] $menu[3] $menu[4]
and in your show_menu2 calls you use 0 - 3 - 4 for $aMenu
Cite from the show_menu2 manual:
... Supplying a menu number of 0 will use the default menu for the current page ...
Regards Bernd
dennywii:
:roll: :roll: :roll:
Yes, that was the problem *lol*
Thank you Bernd.
Navigation
[0] Message Index
Go to full version