Keyword

Forcing active menu item

  • Kelsey Brookes
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
5 months 3 days ago #171542 by Kelsey Brookes
Kelsey Brookes created the topic: Forcing active menu item
Hi there,

I'm on Joomla 3.9.4, K2 2.9.0, with sh404SEF and the K2 sh404SEF plugin v1.5.0.

I've got a bit of an odd issue where the active menu for an item accessed via a category list view is incorrect.

e.g. Menu items for 'about' and 'blog'.

The 'about' menu item links to the 'about' item in the 'about' category.

That one works as expected - the 'about' menu shows as active.

On the 'about' page I also load a K2 Module showing all the items in the 'Team' category, which is a subcategory of 'about'.

When I click through to any of these items, the menu item that is shown as 'active' is fairly random.

It's either nothing, 'about' or 'blog'....

Is there any way to force the active menu item towards the one we want? i.e. 'about'.

Thanks!

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

  • Fotis
  • Fotis's Avatar
  • Online
  • Administrator
  • JoomlaWorks Support Team
More
5 months 3 days ago #171544 by Fotis
Fotis replied the topic: Forcing active menu item
If it's not a caching issue (check the menu module), check if there are other menu mappings to these categories.

A URL would also help :)

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Kelsey Brookes
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
4 months 4 weeks ago #171568 by Kelsey Brookes
Kelsey Brookes replied the topic: Forcing active menu item
Thanks @fotis,

I've turned off caching on all menus and confirmed that there are no additional menu items pointing to those user pages.

If you take a look here:

brandmatters.com.au/about

You'll see a mod_k2_content module with 'meet the team'.

When clicking through to each team member, it's a bit of a crapshoot as to whether the active menu item is none, or something inappropriate.

For example,

brandmatters.com.au/team/paul-nelson is showing with no active menu item

but brandmatters.com.au/team/daisy-han has 'insights' as the active menu item

Her item is not in the 'insights' category, all of the team members are in the team category, which is a subcategory of the 'about' category.

While I can see why it would have no menu item as active, I can't for the life of me figure out why 'insights' is active for some of them.

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

  • Fotis
  • Fotis's Avatar
  • Online
  • Administrator
  • JoomlaWorks Support Team
More
4 months 5 days ago #171739 by Fotis
Fotis replied the topic: Forcing active menu item
Could be a mod_menu override issue. I didn't check the HTML output of the menu module to be honest...

But it looks OK now. Did you resolve this?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white

Powered by Kunena Forum