Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 10:47:31 AM

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.
155402 Posts in 21698 Topics by 7729 Members
Latest Member: adnan
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Could use your help with show_menu2  (Read 424 times)
sparkdigital

Offline Offline

Posts: 348



WWW
« on: July 09, 2008, 09:12:10 AM »

Hello again!

I'm trying to get to grips with the show_menu2 function but could do with your help as there are so many possibilities!

I have a collapsing menu and would like to do the following:

On each page display at least the toplevel and one sublevel like this:

A1
--B1
A2
--B2
A3
--B3

And from then on when clicked on any one of these link for only that one to collapse and show its own child pages up to one level down:

A1
--B1
---C1
---C2
---C3
A2
--B2
A3
--B3

or:

A1
--B1
A2
--B2
---C4
---C5
---C6
A3
--B3

and the same with the levels below that:

A1
--B1
A2
--B2
---C4
----D1
----D2
----D3
---C5
---C6
A3
--B3

So far I got <?php show_menu2(1, SM2_ROOT, SM2_START+1, SM2_CURR+1, SM2_SIBLING); ?> but clearly this isn't working...!  wink

Could someone point me in the right direction?

Thanks a lot!

Konrad
Logged
sparkdigital

Offline Offline

Posts: 348



WWW
« Reply #1 on: July 10, 2008, 10:47:49 PM »

Anyone?

Ta,
Konrad
Logged
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!