Hi,

I have a node A with a field named "description" and a node B.
I created a view EntityReference to make a list of field "description" from the node A.
In the node B, I have an entity reference fields that used the view previously created to select the entities.
When I display the node B, the title of the node A appears and not the field "description" itself previously referenced...
How to make the field of the node A "description" selected is display and not the title of the node A ?
thank you,

Thib

Comments

dman’s picture

I have a similar case - We use entityreferences to refer from 'articles' to 'image' nodes - full nodes that have captions, attributions and tags etc.

In some cases (article teasers) we want to show JUST the thumbnail of the image from inside the *referenced* node, and without the title.
So this case is like yours, just show a field from inside a referenced target.

If you want to get your fingers dirty (and how we did it a while ago) : create an extra 'display mode' for your referenced node type (A type). In D7 you can have more than just 'full' and 'teaser' - you can have as many variations as you like...
Adjust that display mode to only render your desired field.
Then in the display of your main node (B type), use entityreference and select the 'rendered entity' display, where you will see the new display mode.
HOWEVER, hiding the title and the other node clutter may require minor theme hacking

SO

These days I just turn on "Display Suite"
That lets me create arbitrary displays modes easily, and also lets me choose NOT to show node title and things when rendering an entity, and can be configured just through the UI in a sane way.
You can do the above steps using that.

jay.lee.bio’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

I knew the answer right away when I saw "Display Suite", which just solved my problem. Thanks so much!