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

seccond menu not showing

(1/1)

crnogorac081:
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: ---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>', '', '' );

--- End code ---

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

crnogorac081:
Also, menu is dissapearing on preferences page..

crnogorac081:
does anyone have experience with this ?

Stefek:
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

crnogorac081:
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

Navigation

[0] Message Index

Go to full version