WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: sparkdigital on July 09, 2008, 10:12:10 AM

Title: Could use your help with show_menu2
Post by: sparkdigital on July 09, 2008, 10: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
Title: Re: Could use your help with show_menu2
Post by: sparkdigital on July 10, 2008, 11:47:49 PM
Anyone?

Ta,
Konrad