Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 07:12:49 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155550 Posts in 21714 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: seccond menu not showing  (Read 477 times)
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« on: July 22, 2011, 02: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:
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
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #1 on: July 22, 2011, 05:51:04 PM »

Also, menu is dissapearing on preferences page..
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #2 on: July 24, 2011, 01:11:57 PM »

does anyone have experience with this ?
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #3 on: July 24, 2011, 01: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... grin)

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
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #4 on: July 24, 2011, 01: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 Smiley

I was banging my head for 2 days about this.. Sad

silly me
cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!