I have taxonomy countries list with cities

Czech Republic
 - Prague
 - Brno
 - Berlin

Then I have content type position where I am using this taxonomy as select list. Now I need to create table with list of this content type.

Wanted result:

Country       || City
Germany       || Brno
Czech Republic|| Prague

I have created view for that, but I am not sure how to show parent of taxonomy term.

I have found that How to show the parent and child taxonomy term? but I do not see Taxonomy term: Term ID, Taxonomy term: Parent term at all

1 Answer 1

  • First you need to create a Taxonomy term on node relationship to your vocabulary and name the identifier term
  • Then create a Taxonomy term: Parent term relationship using the previous identifier (term) as relationship and name the identifier parent
  • Create a Taxonomy term: Parent term contextual filter using term as identifier
  • Lastly, add a Taxonomy term: Name and use the parent relationship
  • Thank you! That was exactly what I needed. I have one additional question. Is it possible to access user only child terms from taxonomy in content? To allow only to select city, not country.
    – Dawe
    Commented Sep 14, 2015 at 18:43
  • Hi @Dawe I would recommend you to accept the answer(+1) if that worked for you, as it will be helpful for others as well to pick up an already accepted answer. Also post one question at a time, in case you have unrelated queries, post them as separate question. As far as your question is concerned for term access tsa module(drupal.org/project/tsa) should do the job for you.
    – arpitr
    Commented Sep 14, 2015 at 19:06
  • 1
    Thank you arpitr. Unfortunately I am not able to add +1 to answer, because of small reputation
    – Dawe
    Commented Sep 14, 2015 at 19:10

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.