Is this possible using cck to define a content type like this?

I have 2 types of content, lodges and members.

I have created the members content type and it includes a node reference field that allows the user to select 1 of the available lodges (I love that I could create a view to allow users to build the list of lodges).

And now on the lodge pages, I would like to display the members that have selected this lodge in their page.

How can I do this?

Many thanks for the help!

Comments

Use the node referrer module

Use the node referrer module and you can add a field of that type to lodges that automatically creates a back reference when a member references a lodge.

You can use node referrer.

You can use node referrer. However, little know for some reason is that you do not need another module besides CCK and views.

In your view of 'node' type, just do this:

1) Filter on Node:type = members
2) add a Relationship "Content: Lodge" that is your node reference.
3) Add an Argument.
--a) Select "Lodge" (of whatever your node reference field is called) under Relationship
--b) Select "Action to take if argument is not present: " ---- "Provide default argument" ---- "Node ID from URL"
4) Add whatever fields of the members you want
5) Add a Block display to the view and save.

You now have a block that shows all Members that reference the currently displayed Lodge node. Just add to a region, or the content area, and theme as you like.

also modules that give you

also modules that give you other ways to do this

http://pras.net.np/blogs/guide-cck-nodereference#comment-103

also note the ability of node

also note the ability of node reference views http://drupal.org/node/503128 and node relationships http://drupal.org/project/noderelationships modules to do this

Thank you!

Cannot thank you enough. I spent the better part of today trying to figure this out, and unfortunately, your post does not come up as part of the top results when googling for such an answer, when this should really be the very first search result. It's actually opened my understanding of Relationships in Views, as I've never actually had a use for it before and never knowing how I could take advantage of it.

bookmarking!!

bookmarking!!

---~~~***~~~---
aac

nobody click here