WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: crnogorac081 on July 22, 2011, 03:39:59 PM

Title: seccond menu not showing
Post by: crnogorac081 on July 22, 2011, 03:39:59 PM
Hi,

I am creating site with 2 menus:

menu1:
- Home
   -  Page1
   -  Page 2
   -  Page 3

Menu 2:
- Bottom
   -  Contact
   -  About us

Menus are defined in template and propertly checked in Pages.
Menu calls:
Code: [Select]
show_menu2( 1, SM2_ROOT+1, SM2_START, SM2_TRIM|SM2_PRETTY, '[li][a][menu_title]</a>', '</li>', '<ul>', '</ul>', '', '' );
and
show_menu2( 2, SM2_ROOT+1, SM2_START, SM2_TRIM|SM2_PRETTY, '[li][a][menu_title]</a>', '</li>', '<ul>', '</ul>', '', '' );

Problem is that seccond menu doesnt appear, unless I set start to SM2_ROOT (showing page: Bottom)

where the problem could be ? It is same from SVN 1459 ++

cheers,
Ivan
Title: Re: seccond menu not showing
Post by: crnogorac081 on July 22, 2011, 06:51:04 PM
Also, menu is dissapearing on preferences page..
Title: Re: seccond menu not showing
Post by: crnogorac081 on July 24, 2011, 02:11:57 PM
does anyone have experience with this ?
Title: Re: seccond menu not showing
Post by: Stefek on July 24, 2011, 02:36:09 PM
Hello Ivan,

I'd like to help you,
so I will try.

The problem with menus disapearing on preferences pages, search pages etc. is a know issue (I never understood if it should be considered somehow as an feature... :-D)

The another thing with your second menu (show_menu2(2))
As I see, the problem has to do with the TRIM flag in your menu call.
See here for instructions:
http://code.google.com/p/showmenu2/source/browse/tags/4.9/README.en.txt#303

Maybe this helps a little.

Regards,
Stefek
Title: Re: seccond menu not showing
Post by: crnogorac081 on July 24, 2011, 02:41:17 PM
Yeap, it was the third parameter in menu call,

it should be SM2_ALL|SM2_PRETTY instead SM2_TRIML|SM2_PRETTY and all works now  as expected :)

I was banging my head for 2 days about this.. :(

silly me
cheers