displays all childs of a noderference parent parent child relation, is it possible with relationships ?

Events happening in the community are now at Drupal community events on www.drupal.org.
hnln's picture

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

tizzo's picture

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.

hnln's picture

Cool, that did the trick. Thanks very much, I didn't think of adding a relationship to a relationship.

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: