6.x version
How it works
FAQ
Taxonomy Menu Trails (TMT) module fixes the problem of collapsed categories menu on the node page when node itself is not in the menu. It was developed as a companion for Taxonomy Menu module, but they are independent from each other and TMT can be used separately.
Documentation below is for the last stable version in 7.x-2.x branch of the module. See separate page for 6.x version.
taxonomy/term/[tid].Installation is simple:
The module should be configured for each node type you want to expand the menu. First of all, attach at least one Term Reference field to the node type if you haven't done it before. There is a vertical tab named "Taxonomy Menu Trails" on the node type settings page with the following options:
Again, the order of fields and then the order of terms in these fields is used for the "First/Last" method.
hook_taxonomy_menu_trails_get_paths() implementations and get paths from them. Default path will be used for terms that has no paths returned by implementations.[tid]. For complex path patterns you should use API instead of patterns. Be sure to add default pattern taxonomy/term/[tid] if you need it, because it is not included by default. The order of patterns is important for term selection method "First/Last", so be sure to move the most preferred pattern to the top line of the text area.node/[nid] and node/[nid]/*. Here you can specify additional paths to detect node and set menu trail for it. Each additional pattern will be tested on each page load, so use it only if you really need this feature.How it works