CCK Noderef and Views
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. Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
Views relationships? --Andrew On 2010-01-18, at 11:59 AM, 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.
Nancy E. Wichmann, PMP
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
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.
Thank you, Earl. After a little sleep, I was beginning to try to understand "relationships." I actually had the "forward" linking working. Thanks to your mention of Node Referrer, I now have both Views working, and a happy pastor (this was a church site). Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
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@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Earl Miles Sent: Monday, January 18, 2010 1:21 PM To: development@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.
participants (4)
-
Andrew Berry -
Earl Miles -
Josh Miller -
nan wich