WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Multiple menus problem main navigation
  • Print
Pages: [1]   Go Down

Author Topic: Multiple menus problem main navigation  (Read 5995 times)

dennywii

  • Guest
Multiple menus problem main navigation
« on: March 09, 2008, 02:05:55 AM »
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 
Logged

Offline marathoner

  • Posts: 495
Re: Multiple menus problem main navigation
« Reply #1 on: March 09, 2008, 03:23:08 PM »
A little more info would be helpful. ALLCSS2 does not offer multiple menu's by default. What did you use...show_menu2? What syntax?
Logged

dennywii

  • Guest
Re: Multiple menus problem main navigation
« Reply #2 on: March 10, 2008, 09:01:30 PM »
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: [Select]
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

And the parts of the menus I added into my index.php look like that:

Code: [Select]
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, &#39;<ul
id="header_menu" class="menu">&#39;); ?>
<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, &#39;<span> [a][menu_title]</a><br />&#39;, &#39;</span>&#39;, &#39;&#39;, &#39;&#39;); ?> 

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, &#39;<span>| [a][menu_title]</a>&#39;, &#39;                                 </span>&#39;, &#39;&#39;, &#39;&#39;); ?>
</div><!-- end baker_footer -->
</div><!-- end footer -->

I hope that helps. I really appreciate any help I can get.

dennywii
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Multiple menus problem main navigation
« Reply #3 on: March 11, 2008, 12:35:51 AM »
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
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

dennywii

  • Guest
Re: Multiple menus problem main navigation
« Reply #4 on: March 11, 2008, 12:42:42 AM »
 :roll: :roll: :roll:
Yes, that was the problem *lol*

Thank you Bernd.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Multiple menus problem main navigation
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2