Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.7
Component:
Views Data
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
26 Mar 2014 at 07:22 UTC
Updated:
23 Aug 2017 at 15:15 UTC
Jump to comment: Most recent
Comments
Comment #1
crutch commentedNot exactly sure what you are trying to do but this may give you some idea http://drupal.stackexchange.com/questions/32510/how-to-use-entity-refere...
You must provide a relationship in some way, then when adding fields you can require the relationship to display the referenced entity data item.
So say XYZ contains a data "Beans". Then when creating a view for ABC (assuming you also have an entity reference field in ABC content type that references XYZ) then you add the entity reference relationship under "Relationships" in Views.
Then, you can add a XYZ data field to your ABC view in the "Fields", and choose "Require Relationship", and this will display the content from XYZ "Beans" in your ABC View.
Comment #2
ankurkumar.mishra commentedthanks Crutch... its helps me
Comment #3
mustanggb commentedComment #4
renatog commentedComment #5
renatog commentedHi guys.
Thank you Jay. I tested and really using Entity reference is a good way for to get those references.
It's very useful.
@ankurkumar.mishra; any question you can comment here, okay?!
Thank you very much.