Drupal 6.6
MySQL Database: 5.0.51a
PHP: 5.2.6-1+lenny2
Themes: Garland, Zen
Menu Trails: 6.x 1.0
Taxonomy Hide: 6.x-1.02

Not sure how much help this might be to others but here goes. After having spent a great deal of time troubleshooting, I discovered that the Taxonomy Hide module was causing Menu Trails to not work entirely as expected in my Drupal setup.

With both modules enabled, while configuring Menu Trails, I discovered assigning Parent Items for taxonomy categories did not work (menu did not stay active). Assigning Parent Items for node types partially worked (menu stayed active), however, this wasn't going to work since there are multiple taxonomy categories using the same node type (nodes using same node type but different taxonomy categories caused the incorrect menu to be active).

Long story short, after disabling the Taxonomy Hide module I discovered Menu Trails started working as it should. It recognized Parents Items for both node types and taxonomy categories and kept the appropriate menu active.

So I'm just using CSS to hide the taxonomy terms instead of Taxonomy Hide. Hope this helps.

Comments

pkiff’s picture

I can confirm that this is an issue with Drupal 6.15 and Zen as well. I'll be upgrading to Menu Trails 6.x-1.1 soon and will double-check if the issue remains in that version too.

Thanks for identifying the culprit, tkoby.

To reproduce the problem, it is not necessary to disable the Taxonomy Hide module or the Menu Trails module. Simply activate the Taxonomy Hide for a particular vocabulary and then try to assign one of its terms a parent menu item within Menu Trails. You can get the assignment to work, but the menu does not appear. To fix it, you can simply clear the check mark in the Taxonomy Hide settings beside whatever taxonomy you are using to create your Menu Trail, and the appropriate menu will appear again.

I've cross-posted this issue in the Taxonomy Hide issue queue with the subject, Conflict with Menu Trails:
http://drupal.org/node/785320

I have no idea which module would be the best to work on to fix this issue.

Phil.

gease’s picture

Any module hiding the taxonomy will conflict with menu trails taxonomy rules. I'm using Term Display and faced the same issue. The solution is to give the taxonomy hiding module greater weight than Menu Trails has. I've given Term Display the weight of 5 (Menu Trails has the weight of 1).

pkiff’s picture

Hey grease, Thanks! Just revisiting this issue now, and indeed, setting the weight of the Taxonomy Hide module to 5 resolved the issue for me.

For others who stumble across this issue, you can set the module weight manually by direct editing of the system table in your database as described here:
How to update a module's weight

Or you can use the "Module Weight" submodule that is part of the Util module, described here:
Util