I have a design where a car
belongs to a brand
and let's say a brand belongs to acategory
, using entity reference module I was able to display the brand in the car view, but I don't know how to display the category, I tried to set the relationship but it does not seem to work.
1 Answer
Follow this steps:
- Add a relationship of
brand
to the view. This will get you to display the properties and fields of thebrand
entity. - Add another relationship for the
brand
field which references to thecategory
entity using the entity reference field. This relationship should use the previous relationship (like nested relationships). - Now you should be able to display the properties and fields of the
category
entity as well.
Note: I've written this generically; it should work for any type of entities (e.g. Nodes, Users, Files, Taxonomy, etc.)
-
Thanks, I forgot to select the content type of the filter, I have a question though, why can't I see the title of the other Content types in my view ?– teeyoCommented Jan 13, 2015 at 14:41