Taxonomy Browser as a Menu Child Item - Setting $trail

madnomad - June 24, 2009 - 18:56

I've been trying to get a taxonomy-based menu to work right as a child item in my secondary links menu. I'm having problems with breadcrumbs and menu state. $trail is not being correctly set for the pages within the taxonomy navigation scheme.

I've tried a number of modules and have also gotten into the code and created some hacks but still can't get it to work right. I'm wondering if I'm missing something obvious and if I might be making it more complicated than it needs to be.

The (secondary links) menu is:

Downloads
Support
  Support Documents
  Product Manuals
  Knowledge Base
How to Purchase

Knowledge Base is taxonomy based using Taxonomy Browser. There is a single vocabulary (knowledge base) with several terms (installation, user guides, etc.).

The menu is a Jquerymenu and so it includes client side expansion of child items.

The architecture for the Knowledge Base section is:

A. Knowledge Base [taxonomy_browser]
  B. Category page
    C. Item detail page

For all these pages, the secondary links menu should have Support expanded, and Knowledge Base highlighted.

Breadcrumbs should be:
A. Home > Support
B. Home > Support > Knowledge Base
C. Home > Support > Knowledge Base > [category]

Various problems exist with both breadcrumbs and menu state and it has become clear to me that $trail is not being set correctly for _all_ of the pages representing A/B/C above.

Modules I've been working with include:

Jquerymenu
Menus
Menu Trails
URL Aliases
Taxonomy Breadcrumb
Taxonomy Browser
Taxonomy Menu -> a problem here is that the select list is for menu (in my case, i select "Secondary links") and that places the menu item for the vocabulary word at the top level of the menu, whereas I need it to be a child to "Support". I can subsequently go into Site Building | Menus | Secondary links and move it, but then things get wonky.
Taxonomy Menu Custom Path
Taxonomy Menu Hierarchy
Taxonomy Treemenu

Can anyone offer some words of wisdom - or perhaps point me to a discussion of how taxonomy based pages interact with $trail?

Thanks much!

Same problems here. can't

mk3 - August 18, 2009 - 20:49

Same problems here. can't make it work tried seems everything
and getting a little bit annoyed

 
 

Drupal is a registered trademark of Dries Buytaert.