How to create parent child tree of content with Glossary mode in Drupal 8?

by Mohit Wadhwa   Last Updated January 05, 2018 15:07 PM

I have a content type Example and a self reference single value field in that content type.

Node 1 = A - Self Reference = Empty
Node 2 = B - Self Reference = A i.e. Node 1
Node 3 = C - Self Reference = B i.e. Node 2
Node 4 = D - Self Reference = B i.e. Node 2
Node 5 = E - Self Reference = D i.e. Node 4
Node 6 = F - Self Reference = A i.e. Node 1

I want to display the content as follows

A
|_B
  |_C
  |_D
    |_E
|_F
Tags : views 8


Related Questions


Alter the moderation state in the Content view Drupal 8

Updated February 28, 2018 21:07 PM


Group items in Views by value in Field Collection

Updated July 20, 2015 13:03 PM

List of referenced entities appended to a node

Updated January 12, 2017 08:03 AM