Hello all;

I'm using Drupal 7.2, with the Pathauto module.

I have a taxonomy structure that is 5 levels deep, like this: (Each term references the one above it as "parent")

  • Vocabulary1
    • Term1
      • Term2
        • Term3
          • Term4
  • Vocabulary2
  • Vocabulary3
  • etc.

I'd like to have a URL alias like so:
example.com/vocabulary1/term1/term2/term3/term4/[node:title]

I can't find a replacement pattern that will give me a complete alias path for the full depth of my taxonomy structure...

The pattern for Nodes I've set as:
[node:title]

The pattern for taxonomy term paths I've set as:
[term:vocabulary]/[term:parent]/[term:name]

But the taxonomy terms paths never show, just the node title.

Any suggestions?
Under D6 I think we had a "catpath" that doesn't appear to exist anymore for D7.

Reference this topic:
"Add a [node:term]" - http://drupal.org/node/741914

Comments

Car0l’s picture

Hi,
I'm not sure it is the way you expect but in then taxonomy pattern inside taxonomy terms you have the following pattetn
[term:parent:parent]
I think you can construct your url like this...

Hope it helps
Regards

Web Assistant’s picture

To reflect term hierarchy in D7 using pathauto, I go to page admin/config/search/path/patterns and add the following pattern:

[term:parent:parent]/[term:parent]/[term:name]

Not sure how many levels it can go to, maybe forever as it uses token chaining, would be nice if a big brain could confirm.

Drupa1ish’s picture

Suppose you have a content type with attached field field-pathauto-my-term. Try this:

 [node:field-pathauto-my-term:parents:join-path]/[node:field-pathauto-my-term:name]/[node:title]

Drupalish by EuroDomenii

brentimus’s picture

I would just like to mention that the "Entity tokens" module is required to use the tokens EuroDomenii is talking about.