Seeing as I use views or other such methods to create a functional path for a vocabulary, the default taxonomy/term/1 2 3 4 behavior of Taxonomy Menu didn't quite suite me.

Using two of the new hooks from 6.x.2.3 I pieced together this very simple module which adds a field to the edit Vocab screen, much like the Taxonomy Menu Custom Path module does, which allows you to enter in a custom path for each vocabulary. Term paths are still treated exactly the same, so the path you enter only effects the vocab.

I've uploaded it, just in case anybody is interested or looking for that functionality.

Comments

jptaranto’s picture

Category: task » feature
jptaranto’s picture

Title: Module for adding a custom path to the vocabulary only. » Module for adding a custom path for the vocabulary only.
indytechcook’s picture

Thanks jptaranto. I'll take a look at it.

magibird’s picture

Thank you! this is exactly what I needed! It is working perfectly on my site.

palik’s picture

just perfect fix for my problems :)

ahb’s picture

StatusFileSize
new1.4 KB

Thanks for the module!

We want to have a view set up with the same base path as the taxonomy vocabulary custom path, so I added an option to just use that as the prefix instead of what taxonomy_term_path gives us (taxonomy/term/tid). In our case we are using the name not tid so we get customvocabname/termname if the new option is selected.

I am uploading here in case anyone else wants to use their own paths for the menu items (and hopefully this will make it into further releases). This is jptaranto's original vocab module plus my change to add a checkbox.

indytechcook’s picture

Issue merged with #356281: Custom menu titles

This need to be turned into a path and fit in to the current taxonomy menu structure.

jptaranto’s picture

I'm glad it's been of use to people! Warm fuzzy vibrations all round.

stoltoguzzi’s picture

just great this solved my problem

indytechcook’s picture

Status: Needs review » Reviewed & tested by the community

Create Work. I'm adding #6 to the next release. Would you be able to do a little write up for the readme? Something about when to use this path and what id does. A use case would breate.

indytechcook’s picture

Status: Reviewed & tested by the community » Fixed

Added to 2.4-beta1.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Plazmus’s picture

This is a great addon!

However it looks like it works only with paths created in views.
I need to place only blocks on page, so I created empty page (Create content > Page) I've set path to 'demopath' and then I've putted this path in "Custom path for vocabulary: " on taxonomy menu configuration page, unfortunately my menu didn't show up.

Is it by design that it works only with views or it's a bug ?

indytechcook’s picture

When menu items are attempted to be created, the menu system check to see if the page exists. If the page does not exist, then the menu item is not created. It doesn't matter where the paths are created.

What are you trying to do?

lhugg’s picture

Title: Module for adding a custom path for the vocabulary only. » Module for adding a custom path for the vocabulary only inserts garbage chars (%252F) before the vocab name.
Version: 6.x-2.3 » 6.x-2.4-beta1

Using this module as I think it's supposed to be used (but without documentation really addressing the use of this new feature), I'm getting a taxonomy menu generated at my base path ("blogtag") with extra characters in front of the term vocabulary name. For example, "Music" becomes "/blogtag/%252FMusic", which of course produces a page not found error when clicked. Any else having this problem?

lhugg’s picture

Status: Closed (fixed) » Active
jlevis’s picture

Hello,

I have installed the Taxonomy Menu module and it is working great for all the menu items except for the top level vocabulary name menu item

I would like the top level vocabulary name menu item to be "taxonomy/vocabulary/(vocabulary id)" instead of "taxonomy/term/1 2 3 4" but still have all the term menu items work the way they are using the default menu path.

This issue was created by jptaranto and originally named ""Module for adding a custom path to the vocabulary only". It looks like the original patch he posted was supposed to do that. He says it "allows you to enter in a custom path for each vocabulary. Term paths are still treated exactly the same, so the path you enter only effects the vocab."

This issue has since been re-titled and I can't tell from the messages in this issue whether his patch is supposed to have been incorporated/merged into the taxonomy_menu module or not. I have the latest version (Taxonomy Menu 6.x-2.5), but can't seem to find a way to do it. I tried using "custom path" it changes the base path for all menu items including the top level vocabulary name as well as the terms.

I am confused as to whether the patch in comment #6 http://drupal.org/node/424160#comment-1812310 is different and has been incorporated in rather than jptaranto's original patch.

I have looked through the all the related (and possibly merged?) issues for this module including:
#407490: Default Page Callback for Taxonomy Menu
#356281: Custom menu titles

I can't figure out a way to do this and am afraid I will break something if I install jptaranto's original patch: http://drupal.org/files/issues/taxonomy_menu_vocabulary_path.zip

PePiToO’s picture

same issue with jlevis here...

dstol’s picture

Status: Active » Closed (won't fix)

Old issue closing