I want Pathauto to generate the path alias to a new page based on the taxonomy the creator selects.

So, a user creates a new Basic Page called 'Green'. The user selects the term banana from the vocabulary food. The path generated should be example.com/food/banana/green.

Currently I have to type /food/banana/green into the URL path settings URL alias box. If I don't, it ends up being /content/green. I want that step to be automatic.

I tried setting a pattern [term:vocabulary]/[term:name]/[node:title] for my Basic Page content type, but apparently I can't use taxonomy tokens there.

So, has anyone done this in Drupal 7, or Drupal 6? I've been looking at different taxonomy and pathauto related modules, but haven't found what I need yet.

Comments

jerrac’s picture

Right, still haven't found any way to do this. Any suggestions?

NicParry’s picture

Perhaps this module can help: Content Taxonomy. After creating a content taxonomy field, it shows up in the replacement tokens for Pathauto.

jerrac’s picture

Thanks! I'll look into it.

jerrac’s picture

Ok, came back to this problem now that things are farther along with my project.

I looked at that module and it's not what I need. Doesn't seem to have anything to do with Pathauto...

Any other suggestions?