Sub Menu and Main Menu

More
12 years 11 months ago #15535 by CMoorhouse
I have created 2 modules for my menu. The main menu showing horizontally across the screen which on hovering drops down the sub menu. A second menu is also used and then when a user is on a sub menu page the sub menu in question additionally shows in the left hand column.




I have used CSS to change the active item in both menu to blue when that page is active.

The but is....how do i stop them operating independently. For example if from the top horizontal menu someone has selected 'admissions' under 'For Parents', this active item shows as blue on the horizontal top menu (this is as i would expect) but the sub menu in my left hand column does not change, the now active 'admissions' item should also change to blue ie it remains green.

Is it possible to link the 2? ie so they behave together whichever menu the user has used to navigate?

thank you
Caroline

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #15536 by ced1870
Replied by ced1870 on topic Sub Menu and Main Menu
Hi
if you have created 2 separated menus into joomla menu manager for this, you should use the "alias" type for the second menu, then point to the first menu item to keep the relation
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #15537 by CMoorhouse
Replied by CMoorhouse on topic Sub Menu and Main Menu
sorry i am not following you?

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #15538 by ced1870
Replied by ced1870 on topic Sub Menu and Main Menu
how did you do you 2 menus ?
- 1 menu and 2 modules with different levels options
or
- 2 menus and 2 modules

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #15540 by CMoorhouse
Replied by CMoorhouse on topic Sub Menu and Main Menu
2 menus and 2 modules but i can change this if there is a better way

thank you
caroline

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #15542 by ced1870
Replied by ced1870 on topic Sub Menu and Main Menu
then in the second menu you must use a "alias" menu item type to point to the item of the first menu
this is how joomla works, nothing special to do with maximenu ... ;)

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.205 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1189 guests and 2 members online