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.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


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 »
  • Problem with menus
  • Print
Pages: [1]   Go Down

Author Topic: Problem with menus  (Read 4837 times)

jay-smooth

  • Guest
Problem with menus
« on: January 15, 2009, 08:18:13 PM »
Howdy!

My site has 3 menus and a language switch. So, the structure looks like this:

  • German
    • Page 1
    • Page 2
      • Subpage 1
    • Imprint
    • Terms
  • English
    • Page 1
    • Page 2
      • Subpage 1
    • Imprint
    • Terms

I placed the language switch on the start page. The top menu with "Page 1" and "Page 2" works as well as the sub menu with the sub pages. However, the 3rd menu (imprint and terms) doesn't work.

The pages have all the same menu id, just the 3rd menu has another.

I tried every combination with both show_menu and show_menu2.

Has anyone an idea?

Thanks for your help!
Logged

mr-fan

  • Guest
Re: Problem with menus
« Reply #1 on: January 15, 2009, 08:27:28 PM »
 :wink:

Quote
I tried every combination with both show_menu and show_menu2.
Quote
I placed the language switch on the start page. The top menu with "Page 1" and "Page 2" works as well as the sub menu with the sub pages. However, the 3rd menu (imprint and terms) doesn't work.
Quote
just the 3rd menu has another.

 :wink: not so much information my brain is getting  :mrgreen:

sm2 call, link.......please

only doesn't work ....doesn't work  :-D
Logged

jay-smooth

  • Guest
Re: Problem with menus
« Reply #2 on: January 15, 2009, 08:40:51 PM »
sure, here you go:

main menu for "Page 1", "Page 2" and so on. Problem: Switching to a sub page, it shows only the higher categorie.
Code: [Select]
show_menu2(0, SM2_ROOT+1, SM2_START,SM2_SIBLING);
the sub page menu for "Subpage 1" and so on. Works well.
Code: [Select]
show_menu2(0, SM2_ROOT+2, SM2_START+1);
and finally, my real "problem" ;) - the menu for "imprint", "terms" and so on. Their menu ID is 2.
Code: [Select]
show_menu2(2);But there is no output. Other menu IDs also don't work.

Now, your brain can get  :mrgreen:
Logged

mr-fan

  • Guest
Re: Problem with menus
« Reply #3 on: January 15, 2009, 09:13:41 PM »
ok time for question's   :-D

1.what happens if you try the  SM2_TRIM|SM2_PRETTY flag from the help-doku example?

here http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multilingual-websites.php

2.by the second menu i olny think that you have the menu not in your info.php.....

do you remebered this for eg.
Code: [Select]
// definitions for multiple menues (required if more than one menu is used)
$menu[1]    = 'Main navigation';
$menu[2]    = 'Second navigation';

http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multiple-menus.php

so long
Logged

jay-smooth

  • Guest
Re: Problem with menus
« Reply #4 on: January 19, 2009, 04:07:35 PM »
Thank you, mr-fan! Your first tip works fine!

I have already listed the second menu in my info.php. However, it doesn't work. Any further ideas?

So far, thanks a lot  8-)
Logged

mr-fan

  • Guest
Re: Problem with menus
« Reply #5 on: January 19, 2009, 04:58:58 PM »
have you a link?

menu is listed in info.php and menu is called in the settings of the pages you want in that menu, right?

hmm
Logged

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

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