0

Having problem to show url like termname (parent)/[termname] (Child: referenced by node) /node (node which is referenced under particular term)

i want this http://www.example.com/pets/cats/diseases/4-normal-diseases-of-kittens

here pets is parent term name
cats is child of parent 'pets' term name
diseases again sub term name of 'cats'
'4-normal-diseases-of-kittens' is article term referenced to diseases

Thanks in advance

1 Answer 1

2

In your URL aliases patterns, use this token : [node:YOURTAXONOMYFIELD:parents-all] (Ancestors of the term, i.e. parent of all above hierarchy levels).

Then your whole pattern for your node type will be [node:YOURTAXONOMYFIELD:parents-all]/[node:title].

If you have languages matters, I guess it might work with i18n prefix.

8
  • showing this error : The Pattern for all Article Post paths is using the following invalid tokens: [node:field_topic:parents-all]. but if i use only [node:field_topic]/[node:title] works fine
    – Somik
    Apr 15, 2013 at 11:05
  • Can you try [node:field-topics:parents-all] ? Apr 15, 2013 at 12:14
  • Now using this [node:field-topics:1:parents-all]/[node:title] but still article's url only showing one term(term referenced terms) not parent terms
    – Somik
    Apr 16, 2013 at 5:25
  • Did you suppress and rebuild all your content paths ? Apr 17, 2013 at 9:53
  • Yes its solved @Gregory, Thanks for your help i used [node:field-topics:parents:join-path]/[node:field-topics:name]/[node:title]
    – Somik
    Apr 18, 2013 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.