Currently, if you use the userreference CCK field to reference a User, it creates a handy little list on the User profile page of all nodes which reference that user. This is great if you want to go to a user and see what nodes they have 'authored.'
However, since I wanted to restrict the list of users a particular field could reference to those within a 'role', I have done the following:
1. Created a profile field which has a checkbox list of various roles (Author, Moderator, etc.). This is different than the User permission roles.
2. Created a View, restricted to 'profile' node types, with an argument that lists users according to role.
3. Created a Node Reference field in my CCK type which references 'profile' view, with the argument I want for this particular node type (contributor).
On the created node, there is a handy link back to the Contributor's user page. However, there is no corresonding link from the contributors page to all nodes associated with the contributor, i.e. a REVERSE LINK (this is what the CCK userreference field does).
Any ideas how to do this?
Thanks,
Maria
Comments
Comment #1
kenorb commentedYou may try those:
http://drupal.org/project/cnr
http://drupal.org/project/view_own
http://drupal.org/project/nodeaccess_autoreference
http://drupal.org/project/nodeaccess_userreference
http://drupal.org/project/nodeaccess_nodereference
Or create view with reverse list of references. There should be some issue about that.
Comment #2
kenorb commented#241078: Reverse node-reference views relationship
Comment #4
Marko B commentedThis is old but if someone needs solution latest user reference field has a checkbox "Reverse link" and then a group of Related content appears under each user.