Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.11
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2010 at 14:31 UTC
Updated:
10 Dec 2010 at 08:00 UTC
Hi,
is it possilbe (in a views display block) to list fields from a content type "A", that is referenced by a node X(content type "B"), when viewing third node (content type "C", with a node reference to node X - content type "B")?
I'm trying to use views relationships, but i'm only able to show a block with cck "A" fields when viewing cck "b" using arguments "Node id from url".
How can i achieve the same when viewing cck "C" nodes?
Comments
Comment #1
tajabosc commentedFor anyone having this issue you can reference a node of referenced node in a views block.
I've found a solution using views arguments, and this snippet inside php code default argument type:
In this way i'm able to get the nid of the referenced node, thus getting all the referenced fields i need.
Comment #2
dawehnerNeeds review means there is a patch.
That's the way to go here.
Comment #3
tajabosc commented@dereine
Thanks for marking it fixed.