I have a nodes A that have an entity reference field pointing to node B, which has an entity reference to node C (the grandparent)

I need to a list of node A that have this double reference chain to node C.
Does anyone know how I can accomplish this with relationships and contextual filters in views?

Thanks

Comments

Yuri’s picture

Any hints are highly appreciated

socialform’s picture

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: Active » Closed (outdated)