WebsiteBaker Support (2.8.x) > Templates, Menus & Design
show_menu2 show only certain level
(1/1)
sogua:
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.
sogua:
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?
phillbooth:
try installing the showmenu2 module.
Instructions:
http://code.jellycan.com/files/show_menu2-README.txt
Try SM2_ROOT+1
sogua:
--- 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
--- End quote ---
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
crnogorac081:
Did you tried: show_menu2(0, SM2_ROOT, SM2_ROOT+1); as phillbooth sugested ??
Navigation
[0] Message Index
Go to full version