My content has the following references:

A -> B
B-> C
C -> D

A -> 1
1 -> 2
2 -> 3

I have created a View in nodes to show the references of the current view.
I only want to show the top most parent reference plus its siblings.

So if you were on page D or Page 3, the view would just show A.

Is this possible?

Also is possible to control how far up the relationship is displayed.
For example, can you chose to only show the top most parent, but offset it by one, so you can show all the references that come immediately after the top most parent?

Thanks!

Comments

lsolesen’s picture

Status: Active » Postponed (maintainer needs more info)

Please include an export of your view, so we can see what you tried so far.

socialform’s picture

I think you can go as far up or down the hierarchy as you want... just keep adding relationships in the manner below.

Solution here: Views and Entity Reference

Solution was to use:
- Contectual filter: Content: Nid with defaults Content ID from URL
- Relationship 1: Entity Reference: Location
- Relationship 2: (Relationship 1) Entity Reference: Referencing entity
- Fields: (Relationship 2) Content: Title

MustangGB’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)