Taxonomy

User login

Show taxonomy terms Grouped By Taxonomy Parent

Lately I was assigned with the task to display all terms assigned to a node, grouped by their parent. To better explain this, let's say for example that we have the Vocabulary 1 assigned to Content Type A, with the following terms:
 
Parent 1
-- term 1
-- term 2
-- term 3
Parent 2
-- term 4
-- term 5
Parent 3
-- term 6
-- term 7
etc. 
 
Nodes from Content Type 1 have various terms assigned. For example, node/143 has the following terms assigned: term 2, term 4, and terms 6 & 7.
 

Views: Display all nodes that have sibling terms (i.e. terms under the same parent) .

While working on an extra requirement for metalera.gr, we needed to do the following:

When viewing node/xxx, we would like to display all nodes that have terms that belong to the same parent as the one we currently visit. Let's say for example, that we have the following parent:

Colors

--red

--blue

--green

Node/xxx has the term green assigned. We need our view to display all nodes that have red or blue as well. 

To achieve that, we first create a new view, then:  

Drupal: How to generate different view results, using a taxonomy keyword as an argument

The following would apply if you wanted to generate nodes according to a specific taxonomy term, but you didn't want to create a different view for each case.

For instance, we have a market place and in the preface region of our theme, we've setup a 3x3 panel, and in each of the 9 dials we want to demonstrate the latest product from a specific category.

We would create a new node type(Product) for our market products, and a taxonomy vocabulary(Product Categories), which we would then asign to the aforementioned node type. Finally, we would create a view with the following options:

Subscribe to Taxonomy