food nodes, and
recipe nodes (e.g. My Favourite Cake Recipe) link to parent
food types (e.g. Cake). This link is done via a Parent Food content reference field on the
recipe node type.
Now I’d like to display a block titled Linked Food next to all recipes. To do this I created a
food content view with the following:
- Add a relationship with item Content referenced from field_parent_food so that I can display the content of the
foodnode referenced from the
recipepage I’m viewing.
- Add a contextual ID filter, and set WHEN THE FILTER VALUE IS NOT AVAILABLE to Provide Default -> Content ID from URL so that I only look at nodes with an ID equal to the current page.
- Add a field with ID Parent Food so that I display the content of the referenced
I then set up this block to display on the
recipe content type. When I navigate to a recipe I was now expecting to see the parent
food node detailed in the block, but instead I just see the same recipe repeated in the block. What am I doing wrong here?
I’ve had a look at a view tutorials and I’m as someone who is familiar with relational databases I find the concept of views (or at least the documentation) really impenetrable, so I’m just going to ask…