Hi --
Thanks for this handy module. Here is the issue I am having:
I go here: /taxonomy/vocabulary/1 and I get my list of terms for vocab = 1. All is good. I click on a term and it sends me here:
/vocabname/termname/subtermname/all and I get page not found.
My vocab is structure like this:
vocab -> many terms -> many subterms per term
Nodes may be assigned to any level in the vocabulary.
Please let me know what I can do to help solve this or to give you more information.
Thanks --
Missy.
Comments
Comment #1
thaiboxer commentedi'm having this problem also, not sure if its a list issue or views. The only place it is coming up for me is in taxonomy list though.
http://drupal.org/node/527068
Comment #2
thaiboxer commentedmissy there is a option in taxonomy list to show children when clicked, this adds the /all to the end which is after pathauto does its thing.
Comment #3
nancydruDoes that fix it for you?
Comment #4
verta commentedI was having the same problem and this suggestion did fix it.
I have changed this issue to a feature request to add some text to the user interface to explain that the "Show children when clicked" option adds the string "all" to the link.
If there are no children, it actually might be nice to make a code feature to suppress adding "all" to this link, as it's making a link that will not work.
Comment #5
kenorb commentedThe same problem.
I've Display descendants, and links are wrong.
Like: /branża/auto-moto/autosalony/all
Page not found.
Comment #6
greg.1.anderson commentedThe "Show children when clicked" option adds "/all" to the end of every link, but these links are broken by default. This is somewhat frustrating, because showing all of the children in a taxonomy list is the expected default behavior for hierarchical taxonomies. Variants on the Taxonomy hierarchy depth Judo Throw (a great article) did not help me here.
This is how I fixed it.
First, I added a pathauto_alias alter hook to create an alias for the "/all" links:
n.b. If you already have taxonomy terms created with aliases, you should visit admin/build/path/delete_bulk and delete all of your taxonomy term aliases. Then, head back over to https://dev.geni.rintra.net/admin/build/path/pathauto, expand the "Taxonomy term paths" and click on "Bulk generate aliases for terms that are not aliased" and submit the form. If you do this after you enable the code above, the extra taxonomy aliases will be created automatically.
After that, I also used a link alter hook to add the "/all" links to taxonomy terms in node headers and teasers:
Works great; no Judo required, but still more work than I might hope for. Is there an easier way? Calling into the pathauto private function is not terribly elegant. If the technique above is, all the same, the best way to solve this problem, mark this issue 'fixed' and I will find a place in d.o. to move this documentation (php code snippets, maybe).
Comment #7
kenorb commented