2

I'm trying to build out a HTML list menu of taxonomy term followed by nodes associated to that term as a sub HTML list. All items should be linked as well. Can this be done?

Example below:

  • Taxonomy Term 1
    • Associated Node 1
    • Associated Node 2
    • Associated Node 3
  • Taxonomy Term 2
    • Associated Node 4
    • Associated Node 5
    • Associated Node 6
    • Associated Node 7
    • Associated Node 8
    • Associated Node 9
  • Taxonomy Term 3
    • Associated Node 10
    • Associated Node 11
  • Taxonomy Term 4
  • Of course it is :) did you try writing a custom query to fetch all information you need? Which part are you stuck on? – Aram Boyajyan Feb 18 '16 at 22:00
  • @AramBoyajyan - I was going to respond but it looks like No Sssweat gave me the answer I was looking for. My thought was to not have to do it by writing out code for it. Rather go through the views module to accomplish the task. – Jorge Calderon Feb 19 '16 at 15:24
2

Views tree

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.

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)

Example:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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