Views Tree

Views Tree allows for the rendering of hierarchical relationships between entities or users as displayed in a View. The module simply adds a display format for Views titled 'Views Tree (adjacency model)'.

Views Tree with Taxonomy Terms

Creating Taxonomy Terms

Create some Taxonomy terms with parent/child (heirarchical) relationships.

Creating the View

First, create a new term view using the fields row style / unformatted list of fields (it is important that the tree style not be chosen now). Then:

  1. Add relationship for taxonomy term: parent term
  2. Add field term id (do not use relationship) and exclude it from display
  3. Add field term id with relationship, exclude from display
  4. Add any fields you want to display, like term name, term description, etc...
  5. Change style / format plugin to Tree (Adjacency model)
  6. Set Main field to Term ID
  7. Set Parent field to Term ID with parent relationship

(These instructions are taken from #1424414-6: How to configure for D7 Profiles/Taxonomy terms.)

Views Tree with Relation Module

Setting up references

Using the Relation module, add some entity items, and set them to reference each other.

Creating the View

Subscribe with RSS Subscribe to RSS - View tree