I'm using Drupal 7, and I had a vocabulary "Destinations". Under this vocabulary, I had terms with 2 levels. For example:

    -- Brunei
    -- Indonesia
    -- Laos

    -- Spain
    -- Greence
    -- Portugal

For all 1st level taxonomy terms of this vocabulary (ASEAN, EUROPE), I want to display them as a view, with child taxonomy. Eg:

    -- Brunei (term name & description)
    -- Indonesia (term name & description)
    -- Laos (term name & description)

    -- Spain (term name & description)
    -- Greence (term name & description)
    -- Portugal (term name & description)

For all 2nd level taxonomy terms, I want to display nodes which have the term. Eg:

  • Brunei
    -- Package 1
    -- Package 2
  • Spain
    -- Package 3
    -- Package 4

Is there any way I can configure the views to display result as above?
It might have something to do with contextual filter, but I don't know how to configure the parameters.

Any idea on how to achieve this?


in child tpl of views taxonomy term check the parent of tid. if parent value is 0 then show data like "Brunei (term name & description)" And if parent not 0 then show like "Package 1"

| improve this answer | |

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