WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Problem with menus

(1/2) > >>

jay-smooth:
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!

mr-fan:
 :wink:


--- Quote ---I tried every combination with both show_menu and show_menu2.
--- End quote ---

--- 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.

--- End quote ---

--- Quote ---just the 3rd menu has another.
--- End quote ---

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

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

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

jay-smooth:
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: ---show_menu2(0, SM2_ROOT+1, SM2_START,SM2_SIBLING);
--- End code ---

the sub page menu for "Subpage 1" and so on. Works well.

--- Code: ---show_menu2(0, SM2_ROOT+2, SM2_START+1);
--- End code ---

and finally, my real "problem" ;) - the menu for "imprint", "terms" and so on. Their menu ID is 2.

--- Code: ---show_menu2(2);
--- End code ---
But there is no output. Other menu IDs also don't work.

Now, your brain can get  :mrgreen:

mr-fan:
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: ---// definitions for multiple menues (required if more than one menu is used)
$menu[1]    = 'Main navigation';
$menu[2]    = 'Second navigation';
--- End code ---

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

so long

jay-smooth:
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-)

Navigation

[0] Message Index

[#] Next page

Go to full version