Second menu not showing active page

More
11 years 9 months ago #25077 by pegasus
I'm using 2 menus (both using MaxiMenuCK with Params; we just recently purchased the add-on). Each menu has its own colour scheme for link, active, hover, etc. There's the main navigation menu (on all pages) and on some pages I'm putting a sidebar menu with links only to the current section.

Using Params, I've styled the sidebar menu with a grey background, which changes to a light shade of blue on hover and (supposed to be) a dark shade of blue that remains for the active page. It works beautifully except that it won't show the active page in a different colour (it still shows in grey). It does show the active page in the main navigation menu, but not in the sidebar.

Other than the active page problem, the sidebar menu works perfectly as far as I can tell. When I look at the generated CSS for the both menus, the current page's list < li > element does include a class "active" in the main navigation menu, but not for the sidebar menu.

The main nav menu uses the Main Menu which links directly to all pages. The sidebar menu for the section links only to aliases - could that be why? Or is it confused because there are two MaxiMenuCK menus on the same page so it figures that once it has declared the current page to be in the main nav, it stops checking, including in the second/sidebar menu?

I'm at a loss to know how to fix this. Here is a link to a page with the sidebar menu:
ecnetsolutions.net/clients/utovstest/index.php/cpd

Any help with this would be very much appreciated. Thanks!

Wendy

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

More
11 years 9 months ago #25083 by ced1870
Hi
this is a problem with the active state as you pointed it.
Please try to publish a native joomla menu module as sidebar and see if it receives the active class on the <li> or not
CEd

Joomlack Webmaster and Developer

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

More
11 years 9 months ago #25084 by pegasus
The interesting thing is that I had it working at one point using your Accordeon Menu CK extension pointing to alias links, but I thought I would try using MaxiMenu for both side and top menus instead.

When you say create another "native" menu module, do you mean one that uses only direct links rather than aliases? If so, my understanding of Joomla is that a page can reside in only one place, so if it's a menu other than the main one (its primary home) then you have to link to an alias or the pointers get really messed up. Or did you mean something else?

This is a development site so I could try things out, but I want to be clear about what you're suggesting I do first.

Thanks,
Wendy

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

More
11 years 9 months ago #25085 by ced1870
no, I mean publishing a "mod_menu" instead of the maximenu to show the same menu. just to see where can be the problem

Joomlack Webmaster and Developer

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

More
11 years 9 months ago #25086 by pegasus
Ah. Okay, I did that, and yes the mod_menu module is showing the active link in the CSS.

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

More
11 years 9 months ago #25087 by ced1870
ok, check the options in both modules, especially the opion "base item", have you set differently for the maximenu ?

Joomlack Webmaster and Developer

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

Time to create page: 0.197 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 922 guests and one member online