I have some content which refers (using CCK's node reference) to users' node profile nodes. When a user is logged in, I want to show a block with links to all nodes which refer to that user's node profile node. How do I do that?

Node profile uses node family, so I suspect that the information in node family's README is relevant, but I don't know enough PHP to be able to go from there to what I need.

It would be quite easy to do this with Views if I had used user reference instead of node reference, but I really want to refer to the node profile, because when I insert a reference, I want to choose from a nice list of real names instead of user names (the title of the node profile node is the user's full real name, thanks to automatic nodetitles).

Comments

drupalreggie’s picture

The above question seemed related to mine, and it would be useful to know the answers to both.

I'm looking to create block, situated on the account pages of users which displays node A. Within node A there is a reference field to node B. Within node B there is a user reference field containing multiple registered users of the site; these are the users which must be able to see the block. I would have thought this would be possible using views somehow, I already have a block in place which shows a user node B based on UIDs from the URL but can't figure out how to add an 'extra layer' if you see what I mean? Any help would be greatly appreciated.

Cheers, Reggie