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.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


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 »
  • Can´t get show_menu2(2, SM2_ROOT+1, SM2_START); working - WORKAROUND
  • Print
Pages: [1]   Go Down

Author Topic: Can´t get show_menu2(2, SM2_ROOT+1, SM2_START); working - WORKAROUND  (Read 4218 times)

Lotus

  • Guest
Can´t get show_menu2(2, SM2_ROOT+1, SM2_START); working - WORKAROUND
« on: October 28, 2008, 01:13:53 PM »
Hello, i have got 2 menus but I cant get the no: 2 to work as i want.

Doesn´t work
Code: [Select]
show_menu2(2, SM2_ROOT+1, SM2_START);
Works but s not what i want!
Code: [Select]
show_menu2(2, SM2_CURR);
As you see I want it to always show those pages in level 1 set to menu no:2 no matter where you are in the page tree. When using SM2_CURR they will dissapear as soon you go deeper then level 1.

Can I get around this somehow, is it a bug, is it something wrong with my installation?

These are the menus incorp. in the template.

Main --> show_menu2(1, SM2_ROOT+1, SM2_START);
Choose lang --> show_menu2(1, SM2_ROOT, SM2_START);
Main subpages --> show_menu2(1, SM2_ROOT+2);
Special --> show_menu2(2, SM2_ROOT);
The special i rather would like to have show_menu2(2, SM2_ROOT+1, SM2_START);

EDIT!
So how did I solve this?
By moving all pages set to menu no:2 to level 0 and use this code:
Code: [Select]
show_menu2(2, SM2_ROOT);I have a multilanguage site so all corresponding pages in other languages has to use a higher menu no.

EDIT2!
But then another instance of show_menu2 stopped working
Code: [Select]
show_menu2(1, SM2_ROOT+1, SM2_START)
« Last Edit: October 28, 2008, 03:45:31 PM by Lotus »
Logged

casinnova

  • Guest
Re: Can´t get show_menu2(2, SM2_ROOT+1, SM2_START); working - WORKAROUND
« Reply #1 on: March 23, 2009, 03:51:57 AM »
i have the same exact problem....    i have no idea how to work around this...  i HAVE tried.   :?
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Can´t get show_menu2(2, SM2_ROOT+1, SM2_START); working - WORKAROUND
« Reply #2 on: March 23, 2009, 06:37:50 AM »
Would you please give this a try:
Read the manual and give your attention to the part which parameters are manditory! And how to combine paramters.

Additional it would be a good idea to show us a example what you want to reach ...

Regards Bernd
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

casinnova

  • Guest
Re: Can´t get show_menu2(2, SM2_ROOT+1, SM2_START); working - WORKAROUND
« Reply #3 on: March 23, 2009, 07:42:53 AM »
i want to reach    show_menu2(2, SM2_ROOT+1)

but it doesnt work in a multilingual site where a page in  $menu[2]  is a child of a page in $menu[1]

show_menu2(2, SM2_CURR)    does work, but once you navigate deeper than "Level 1" then it no longer shows. 


Lotus put up a quite thorough explanation...   if someone could just give us a slight hint.... or just tell us its impossible.    :-D :lol: :-P
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Can´t get show_menu2(2, SM2_ROOT+1, SM2_START); working - WORKAROUND
 

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