Automatic Submenu?

Here you don't need to be afraid to ask

Automatic Submenu?

Postby clairec » Thu Mar 04, 2010 5:56 pm

HI all,

I've been playing around with the stop and start levels for a sub menu,

but basically all I want is one menu module that shows the sub pages automatically.

My website has about 3 levels,
Some pages have sub pages.
Some pages have sub pages with sub pages.
Some pages have no sub pages at all.

So say one of my pages is called Departments.
And Departments has 5 sub pages.
I want links to all those 5 sub pages to appear in a menu.

And say I click one , "ICT department" for example then I want for the "ICT department" sub pages to appear in that menu.

At the moment I have two modules with different start and stop levels but really I just want one.

Is this possible?

I will try and post an example tomorrow if this is unclear :)
clairec
User
 
Posts: 15
Joined: Thu Jul 09, 2009 4:19 pm

Re: Automatic Submenu?

Postby ga.n » Thu Mar 04, 2010 6:06 pm

what is the problem with having two modules?
Did you find this post useful?
You may wish to take a look at
User avatar
ga.n
User
 
Posts: 147
Joined: Fri Jun 19, 2009 5:03 pm

Re: Automatic Submenu?

Postby Vera » Fri Mar 05, 2010 8:52 am

If you set the limit to 1 and you do not check "hard limit", then this is exactly what the navigation module does. It will show only the first level, but the limit is not applicable to submenu items. ;)

On another website I used CSS/JS to solve this because I wanted other submenu's to show on hover (so I only show current submenu items unless I hover the mouse over another main menu item. Then I show those submenu items)
User avatar
Vera
User
 
Posts: 200
Joined: Mon Jun 29, 2009 8:28 am

Re: Automatic Submenu?

Postby clairec » Fri Mar 05, 2010 1:27 pm

ga.n wrote:what is the problem with having two modules?

I guess because I don't want my users to be worrying about modules and layouts I just want them to be able to add as many sub levels as they need and just always show the appropriate menu.
clairec
User
 
Posts: 15
Joined: Thu Jul 09, 2009 4:19 pm

Re: Automatic Submenu?

Postby ga.n » Fri Mar 05, 2010 6:43 pm

clairec wrote:
ga.n wrote:what is the problem with having two modules?

I guess because I don't want my users to be worrying about modules and layouts I just want them to be able to add as many sub levels as they need and just always show the appropriate menu.

Take a look at: http://www.zedseries.com/extensions.html

the main menu is composed by three page that you see on top. The extensions page has five subpages that are shown on the right column (under the "see also" title)

if you do not know a priori how many "levels" you will have I think the only solution is to put the entire menu (without stop levels) as a module of the layout this way it will take care of showing the newly added pages.
Did you find this post useful?
You may wish to take a look at
User avatar
ga.n
User
 
Posts: 147
Joined: Fri Jun 19, 2009 5:03 pm


Return to Newbie forum

Who is online

Users browsing this forum: No registered users