WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: jay-smooth on January 15, 2009, 08:18:13 PM

Title: Problem with menus
Post by: jay-smooth on January 15, 2009, 08:18:13 PM
Howdy!

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


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!
Title: Re: Problem with menus
Post by: mr-fan 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
Title: Re: Problem with menus
Post by: jay-smooth 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:
Title: Re: Problem with menus
Post by: mr-fan 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 (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 (http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multiple-menus.php)

so long
Title: Re: Problem with menus
Post by: jay-smooth 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-)
Title: Re: Problem with menus
Post by: mr-fan 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