Main site menu highlighting...

beejay41
13 years, 8 months ago
Just a warning to anyone using the menu item highlight feature in their main site template. I'm sure Joomla experts will say, obviously, but its taken me most of the morning to work out why highlighting stopped working (except on the home item  )

Turns out that the duplicate copies of the main menu, created when Mobile Joomla is installed, can be the cause of the problem. It looks like Joomla gets confused which menu the page is related to and no longer generates the id="current" or class="active" tags in the menu items.

It only started after I made the mobile menus slightly different to the main menu, so you may get away without encountering the problem.

The solution is to ensure that all the item aliases on the mobile menus era different to those on the main or any other menu. As long as the mobile items don't get into your sitemap, this shouldn't upset your SEO/SEF, but any frontpage link to the mobile site will need "nofollow". Maybe something mod_mj_markupchooser needs an option for. Otherwise you'll get a lot of duplication in search engines.

I hope this is useful to someone.
dryabov
13 years, 8 months ago
1. Do you use sef urls?
2. If yes, did you cange menuitem aliases after making copies? (because of joomla failes to distinguish menuitems with the same alias)
beejay41
13 years, 8 months ago
1. yes
2. that's exactly the thing I missed.

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.