Sorry, the title is a bit of a mouthful but I will attempt to clarify.
I have a question about pathauto tokens to create a URL alias for a nested/hierarchical taxonomy.
Specifically, I have a taxonomy called Category, which is
n layers deep; e.g:
Category level 01 > Category level 02 > Category level 03
And so on. The question appears to have been asked many times before and there are a number of good solutions, including the following pattern:
This yields the following url alias for the above example:
Pretty straightforward. This would be perfect except in my example the taxonomy terms are in Chinese.
I need English in the path aliases, so I have set up a new field in my taxonomy called 'Name English'. This gives me the following replacement pattern:
Which is almost perfect, but the parents default to using the
name field, and there does not seem to be an easy way of overriding this. I cannot use the parent taxonomy terms with delta because it's not dynamic; e.g:
Some taxonomy depths will be deeper than others.
So, in summary, I need to somehow specify an alternate term field to name for the
[term:parents] token. To do this I assume I will need to do one of the following:
- Create a custom token
- Override the current
Can anyone advise on this? Thanks a million.