Closed (fixed)
Project:
Viewfield
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2011 at 20:50 UTC
Updated:
4 Sep 2019 at 19:19 UTC
Jump to comment: Most recent
Comments
Comment #1
danielb commentedRelated but different drupal version #1250316: Add Node Reference Field Selector to Field Settings
Comment #2
sashkernel commentedIs there any argument that must be passed by the ViewField?
I've got similar task completed with panels, but now I want this to be in ViewField and for some reason I get blank view.
In my case, I'm trying to show related content in the view field.
- I added context filter NID and set validator to few pieces of Content
- Then, in Argument Input, I chose "from Context">Content ID.
- And finally in viewfield I set to pass Content ID.
Kind regards
Comment #3
jerdavisIf you want to have the view return results from an entity reference on the same entity, you can pass [node:nid] in the tokens for arguments in the Entity Viewfield, then in your View you can add a contextual filter for Content: ID and add a relationship for your Entity's Entity Reference field. Use the relationship to drive the output by associating it with the Contextual Filter or individual fields in the View display.