Closed (fixed)
Project:
Pathauto
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2011 at 08:58 UTC
Updated:
26 Apr 2012 at 05:45 UTC
I'm creating a shop for my father in drupal 7 with the commerce module. I am using taxonomy terms as a means to group products into categories and then build a menu from them. The pattern I have for taxonomy items currently is category/[term:parent:name]/[term:name]-[term:tid] however what I would like is to drop the tid and replace parent:name with all parents. Is this possible?
Example: woman's wear > coats > outdoor would be womanswear/coats/outdoor rather than coats/outdoor which would also be the path for man's wear > coats > outdoor
Comments
Comment #1
ihateie commentedtry something like this "category/[term:parent:parent:name]/[term:parent:name]/[term:name]"
Comment #2
Daemon_Byte commentedFirstly I was hoping to have something that would cope with unlimited branches but also wouldn't that give me category//parent/term if it had no grand parent?
Comment #3
dave reidSubscribe to #1266928: Add [term:parents] and [menu-link:parents] array tokens and #1046972: Provide an [array:join-path] token which will allow you to use [term:parents:join-path] token that will add all parents of a term.
Comment #5
marcopanichi commentedtry [term:vocabulary]/[term:parent:parent:name]/[term:parent:name]/[term:name]
it works for me