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 »
  • show_menu2 show only certain level
  • Print
Pages: [1]   Go Down

Author Topic: show_menu2 show only certain level  (Read 4867 times)

sogua

  • Guest
show_menu2 show only certain level
« on: November 30, 2009, 10:21:44 AM »
Hi there,

I'm using show_menu2 currently.
I have a table with 4 column.
Column 1 only show level 1 pages
Column 2 only show level 2 pages
Column 3 only show level 3 pages
Column 4 only show level 4 pages


At the moment, i'm using this code to show
Col 1: show_menu2(0, SM2_ROOT, SM2_START);
Col 2: show_menu2(0, SM2_ROOT+1, SM2_START);
Col 3: show_menu2(0, SM2_ROOT+2, SM2_START);
Col 4: show_menu2(0, SM2_ROOT+3, SM2_START);
 
but this code have some problem.
Let say i have a Page A (in level 1) and this page has 3 level child,
- Page A
  - Page C2
    - Page C3
      - Page C4

whenever i click on Page A, it will show all the child Page C2, C3 and C4 in the menu.

How can i show the child only when i click on it's respective parent.
eg:
I click Page A, it only show Page C2 in col 2
Then i click Page C2 and it only show Page C3 in col 3
then i click Page C3 and it then only show C4 in the col 4

Thanks in advance.
Logged

sogua

  • Guest
Re: show_menu2 show only certain level
« Reply #1 on: November 30, 2009, 10:31:31 AM »
BTW, I can achieve what i wan using show_menu()

show_menu(1, 0, 1);
show_menu(1, 1, 1);
show_menu(1, 2, 1);
show_menu(1, 3, 1);

but not in show_menu2()

anything i miss?
Logged

phillbooth

  • Guest
Re: show_menu2 show only certain level
« Reply #2 on: November 30, 2009, 04:29:02 PM »
try installing the showmenu2 module.

Instructions:

http://code.jellycan.com/files/show_menu2-README.txt

Try SM2_ROOT+1
Logged

sogua

  • Guest
Re: show_menu2 show only certain level
« Reply #3 on: December 01, 2009, 03:03:57 AM »
Quote from: phillbooth on November 30, 2009, 04:29:02 PM
try installing the showmenu2 module.

Instructions:

http://code.jellycan.com/files/show_menu2-README.txt

Try SM2_ROOT+1

Have go thru the doc but too bad i cant find one that suit my need ...
or i'm dumb enough

any kind person willing to help :(
TQ
Logged

Offline crnogorac081

  • Posts: 2163
  • Gender: Male
Re: show_menu2 show only certain level
« Reply #4 on: December 01, 2009, 11:18:22 AM »
Did you tried: show_menu2(0, SM2_ROOT, SM2_ROOT+1); as phillbooth sugested ??
Logged
Web developer

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • show_menu2 show only certain level
 

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