[development] CCK Noderef and Views

Josh Miller JoshM at haanmc.com
Thu Jan 21 16:30:47 UTC 2010


You could use http://drupal.org/project/cnr for two way node reference
connections (I use it extensively). This is a very well maintained
contrib, just a little short on the user interface.

Josh

-----Original Message-----
From: development-bounces at drupal.org
[mailto:development-bounces at drupal.org] On Behalf Of Earl Miles
Sent: Monday, January 18, 2010 1:21 PM
To: development at drupal.org
Subject: Re: [development] CCK Noderef and Views

nan wich wrote:
> I have two content types: members (not users) and committees. I have
the 
> member type set up to use Nodereference to be able to make a member
part 
> of a committee. Now I want to create a view to show the committees and

> each one's members. Showing all teh committees is easy, but how do I 
> then show all the members who are part of that committee?
>  
> Maybe I'm just too short on sleep.

Next to Relationships, select the +.

Select the 'Content' set. Add the one for your node (user? either way 
works) reference. Add it, the required checkbox will change the JOIN 
from LEFT to INNER if it is checked.

Then add your fields.

Note that the reference goes only one way: It goes from the node with 
the field to the node that is referenced. But you can go backward by 
using the node referrer module, it provides a second relationship that 
can go the other way.


More information about the development mailing list