Hello,

I want to say that this modules potential is so immense for us 5.x users. It is 95% perfect for what I need.

I have used now both Taxonomy_Menu, and Taxonomy_Navigation, the pathauto feature of Navigation takes the cake, hands down.. but I need more flexibility with the menu that contains the taxonomy navigation. In short, I need to be able to put the category menu inside of a different menu item, not just the menu root.

Let's say for example, that we have a node-type to list out bands, and in that node-type a vocabulary is called with this sort of term structure:
Bands (Vocabulary)
- Rock (Term)
- Alternative (Term)
- Metal (Term)
- etc.

In Taxonomy Navigations default, this example would be printed like this:
Primary Menu
- Rock
- Alternative
- Metal
- etc.

But I need it to display inside of a different child menu item, like this:
Primary Menu
- Bands (separate menu item created in the Drupal default menu admin interface)
- Rock
- Alternative
- Metal
- etc.

Can this be easily implemented?
Thanks

Comments

hanoii’s picture

This module relies on pathauto aliases to properly build the hierarchy of the menus, I don't think I have another way of doing this.

Said this, I think that you can accomplish what you want. I assume that the menu item you created (Bands) points to some drupal path (a node or something)

So if your drupal path for the menu item Bands is the following:

content/bands

You can change the pathauto category setting to include that path before the aliases...

for instance, you can have:

content/bands/[catpath-raw]

By doing that, because the menus that will be generated contains a parent path, they will be rendered under the content/bands menu item you created and ignore the parent pid you configured on the taxonomy settings.

I have tried this and it works.

XBleed’s picture

This seems great, but I can't seem to get it to work.

I have updated my pathauto for a vocabulary to follow this structure:
bands/genres/[catpath-raw]

Which as I understand should create a menu structure like this:
Bands
--Genres
----Alternative
----Rock
----Metal
----etc.

But it's not. Instead it's putting the genre terms in the root Primary Menu links. I haven't tried, but maybe the problem is that I already have a menu item inside of primary links called "Bands" as I want this menu to contain more links than just category terms. For example:
Bands
--Genres
----(Sublist of terms go under here, according to the pathauto catpath)
--Add a band (links to node/add/band)
--Your bands (links to a view)
--etc.

Hopefully I'm not out of luck here, I need taxonomy / terms to be in the menu so that the menu primary is highlighted when you are browsing through it.

Thanks for the help.

hanoii’s picture

I think that for that to work you also need to manually create the menu item Genres under Bands. Doing so should properly put the menu items under the Genres menu item

hanoii’s picture

Status: Active » Closed (fixed)