FAQ: Separate display of SUB and MAIN menu items

Moderator: mcsmom

Post Reply
User avatar
MarkV
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Tue Sep 06, 2005 9:10 am
Location: Netherlands
Contact:

FAQ: Separate display of SUB and MAIN menu items

Post by MarkV » Wed Sep 07, 2005 7:44 am

Q. Want a menu that only displays submenu items?

A. Change your CSS file so it will not display mainlevel items.

.mainlevel { display: none; }

When you are using a separate main and submenu make a copy of the main menu module. The copy should be named submenu and you should give it a class suffix. (for example _sub).

When doing so the css should be as follows:

.mainlevel_sub { display: none; }
.sublevel  { display: none; }

The main menu will only display main items now.
The submenu only displays submenu items.

With the position setting, you can adjust the location where both menus will be displayed.
Last edited by kenmcd on Wed Sep 07, 2005 8:58 am, edited 1 time in total.
Joomla insite

User avatar
kai920
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Sun Sep 04, 2005 3:59 pm
Location: Hong Kong

Re: FAQ: Separate display of SUB and MAIN menu items

Post by kai920 » Sat Oct 15, 2005 3:05 am

Mark,
Can you give an example of when this might be useful, or if you have a link that'd be great. Thanks

User avatar
farimi
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 111
Joined: Fri Sep 02, 2005 2:24 am
Location: Malaysia
Contact:

Re: FAQ: Separate display of SUB and MAIN menu items

Post by farimi » Sun Oct 30, 2005 3:37 pm

Mark, thank you, i think this is useful for me, but can you explain if i can make it display different submenu for different menu item.

For example if i click {Mainmenu}item1 it will shows [submenu]itemA,[submenu]itemB on the other column and when i clink {Mainmenu}item2, it will shows [submenu]itemA,[submenu]itemB on the other column. and the submenu is position on the same position in the column.
Opensource Community...It does matters!

User avatar
MarkV
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Tue Sep 06, 2005 9:10 am
Location: Netherlands
Contact:

Re: FAQ: Separate display of SUB and MAIN menu items

Post by MarkV » Mon Oct 31, 2005 1:15 pm

A example can be found here: http://www.vocesonline.nl/, and farimi you can. See the source and the css on vocesonline.nl.
Joomla insite


Post Reply