Posted by hnln on October 9, 2010 at 5:27pm
Hi there,
I have a set-up of a parent parent child relation where each item is a different content type: parent content type A, child content type B has a nodereference link to content type A, child content type C has a nodereference link to content type B.
example:
A
/ \
B B
/ \ \
C C C
Is it possible to display all content type C children of content type A using relationships ?
I created a custom argument handler for now, but want to know if I can do this from the views UI.
Tnx,
HnLn
Comments
Sure, just add a
Sure, just add a relationship for the c-to-b connection and then another for the b-to-a being careful to use the first relationship in the creation of the second. Then you can add an argument for the nid of the "a" node using the b-to-a relationship.
If you provide a default argument using nid from URL and create a block display you can list the "c" nodes related to an "a" node on the "a" node's page.
Cool, that did the trick.
Cool, that did the trick. Thanks very much, I didn't think of adding a relationship to a relationship.