Part of the Views ecosystem · 280 projects
This module provides a tree-based display style for Drupal Views, allowing you to present hierarchical data efficiently using a single database query. It works by linking fields to represent parent-child relationships within your view.
This module provides a tree-based style plugin for Views. It is equivalent to the tree-based style template from Views 1.
It is based off of the list style. Although it generates a nested view, there is still only a single query run for the view making it quite performant.
The 1.x branch is compatible with Views 2. The 2.x branch is compatible with Views 3.
Usage
- Create a new view using the Fields row style. Populate it with the appropriate fields you want.
- Select the Tree (Adjacency model) style plugin.
- Select the linking fields in the style configuration panel. Generally, you will want to link from a nodereference field to the nid on the same node type. That is, the nodereference field is used as a pointer to the "parent" node.
- Save and enjoy.
Compatibility
This module has been tested and used with the following relationship-oriented modules:
- Taxonomy (in core) - parent/child relationships
- References - node and user references
- Relation - references between any entities (D7 only)
- Entity reference - references between any entities (D7 only)
- Organic Groups (D7 only)
This module was developed for http://www.star-fleet.com/.
Ask your assistant about Views tree
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- views Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Views ecosystem
Most installed first