The Problem
I have a couple of entity reference fields that references a hierarchy of nodes. For the sake of simplicity let's use just the top level example Video Game -> Video Game Release
So when I look at the video game "Assassin's Creed 2" I see two releases "Assassin's Creed 2" and "Assassin's Creed Ezio Trilogy".
Background info that isn't necessarily important to the question:
! The reason for the entity reference is on "Assassin's Creed Brotherhood" I would also have two releases "Assassin's Creed Brotherhood" and "Assassin's Creed Ezio Trilogy".
- Assassin's Creed 2 (Node: game, ID: 1)
- Assassin's Creed 2 (Node: release, ID: 2)
- Assassin's Creed Ezio Trilogy (Node: release, ID: 3)
- Assassin's Creed Brotherhood (Node: game, ID: 4)
- Assassin's Creed Brotherhood (node: release, ID: 5)
- Assassin's Creed Ezio Trilogy (Node: release, ID: 3)
When I view the node "Assasin's Creed 2" I'm currently seeing both releases one after the other. I styled these using display suite and they look fine. However I want to display only one of them at a time with a tab, select list, or something of the like to allow me to switch between them.
My thoughts
- I was unable to find a module that could perform this but I feel one may exist.
- I could use a simple jquery tab ajax but wasn't sure if their was already a drupal way to do this.
- Perhaps I could use exposed views and a views embed field to show all the referenced nodes but then the performance would suffer significantly.
The question
How do I display an entity reference field as tabbed or select list content? Preferably without the performance drop of an embedded view.