i'd like to use taxonomy menu with taxonomy redirect. thank you.

Comments

agileware’s picture

Status: Active » Closed (won't fix)

I have looked into this and due to the way taxonomy_menu (and the drupal menu system) works this isn't really possible.

It would be possible to make a patch for taxonomy_menu that does a call to taxonomy_redirect, for example:

$redirect = module_invoke('taxonomy_redirect', 'term_path', $term)

Then: if $redirect != 'taxonomy/term/' . $term->tid use $redirect instead of $path.

In theory you could do it like this except...

You will end up with either your menu item not appearing (because it isn't in the parent/child format) or your menu item going to the wrong url (for your menu to appear it will have to be parent menu item parent/redirect path instead of just redirect path).

So it can't really work without a lot of customisation to taxonomy_menu... or a little customisation to taxonomy_menu and then some fiddling with taxonomy_redirect to allow for the nesting of menus.