Menu - hidden links

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Ryan
New Member
New Member
Posts: 3
Joined: Fri Feb 20, 2009 4:41 pm

Menu - hidden links

Post by Ryan »

I need to be able to display certain sub-level navigation links when a parent page is active. For better understanding, this is how my menu looks.

1
2
2.1
2.2
2.3
2.4
2.4.1
2.4.2
2.4.3
2.5
3
4
4.1
5
6
7

I'm happy with 2.1 to 2.5 not being visible when 2 isn't active, but I need 2.4.1 to 2.4.3 to become visible when 2 is active. At the moment, they only become visible when 2.4 is active.

What will I need to do to edit the way the logic in the menu works?
Ryan
New Member
New Member
Posts: 3
Joined: Fri Feb 20, 2009 4:41 pm

Re: Menu - hidden links

Post by Ryan »

I'm sure that what I'm asking can be done...
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: Menu - hidden links

Post by tophers »

You could try removing the {collapse='1'} from the menu call. This will result in ALL the item being shown, however, so you may need to build a few template pages to handle it the way you want (i.e. - Section 2 would have the collapse='1' removed, the rest wouldn't), or you could look a more convoluted approach where you call the menu in chunks using start_element attribute in conjunction with the collapse statement, but it may get ugly going that route.
Post Reply

Return to “CMSMS Core”