I’m trying to implement a nested structure in such a way as to get a table (within a view?) similar to this:
Parent Child Grandchild Age Sex John 56 M Lisa 29 F Jim 4 M Louis 6 M Mark 24 M Sanda 21 F Marcela 45 F Sam 21 M Andy 18 M ...
For this I defined the following content types:
Parent: +Title (name) +Age +Sex +Child [entity reference] Child: +Title (name) +Age +Sex +Grandchild [entity reference] Grandchild: +Title (name) +Age +Sex
The +Age
and +Sex
attributes are shared between the content types, and the nested structure is implemented with entity reference fields.
I tried using Views, but I couldn’t find a way to achieve this.
Any hint ?
Note:
With Views I managed to get the following table:
Title Age Sex Children John 56 M Lisa, Mark, Sanda Marcela 45 F Sam, Andy
which is a basic use of Views…
Actually I cannot manage to relate Grandchild
to Parent
entity, through Parent > Child > Grandchild
structure.