WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • seccond menu not showing
  • Print
Pages: [1]   Go Down

Author Topic: seccond menu not showing  (Read 4494 times)

Offline crnogorac081

  • Posts: 2163
  • Gender: Male
seccond menu not showing
« 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
Logged
Web developer

Offline crnogorac081

  • Posts: 2163
  • Gender: Male
Re: seccond menu not showing
« Reply #1 on: July 22, 2011, 06:51:04 PM »
Also, menu is dissapearing on preferences page..
Logged
Web developer

Offline crnogorac081

  • Posts: 2163
  • Gender: Male
Re: seccond menu not showing
« Reply #2 on: July 24, 2011, 02:11:57 PM »
does anyone have experience with this ?
Logged
Web developer

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: seccond menu not showing
« Reply #3 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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline crnogorac081

  • Posts: 2163
  • Gender: Male
Re: seccond menu not showing
« Reply #4 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
Logged
Web developer

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • seccond menu not showing
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2