Keyword

Forcing active menu item

  • Kelsey Brookes
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
5 years 2 weeks ago #171542 by Kelsey Brookes
Forcing active menu item was created by Kelsey Brookes
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.

More
5 years 2 weeks ago #171544 by JoomlaWorks
Replied by JoomlaWorks on 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 :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Kelsey Brookes
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
5 years 1 week ago #171568 by Kelsey Brookes
Replied by Kelsey Brookes on 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.

More
4 years 11 months ago #171739 by JoomlaWorks
Replied by JoomlaWorks on 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?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum