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

ihateie’s picture

try something like this "category/[term:parent:parent:name]/[term:parent:name]/[term:name]"

Daemon_Byte’s picture

Firstly 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?

dave reid’s picture

Status: Active » Fixed

Subscribe 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.

Status: Fixed » Closed (fixed)

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

marcopanichi’s picture

try [term:vocabulary]/[term:parent:parent:name]/[term:parent:name]/[term:name]
it works for me