Problem with menus

mr-fan

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

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

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

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.
show_menu2(0, SM2_ROOT+1, SM2_START,SM2_SIBLING);

the sub page menu for "Subpage 1" and so on. Works well.
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.
show_menu2(2);
But there is no output. Other menu IDs also don't work.

Now, your brain can get  :mrgreen:

mr-fan

 :wink:

QuoteI tried every combination with both show_menu and show_menu2.
QuoteI 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.
Quotejust 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

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!