Reverse Node Reference with Action
Hi there,
a lot of requests in drupal forums address the backlinking of nodes being referenced by node reference (which is part of CCK). This can be achieved by nodereferrer or with views and additional argument handling code (which is in my opinion much more flexible).
While nodereferrer is by design read only i'm looking for a smart solution which extends the list of referencing nodes with a button „Link it!“.
Maybe an example makes it easier. Lets say we use Bio for building user profiles. We have a node type „books“ and a node type „movies“ which can be created by all users (yes yes, UGC!! :-) ). Now lets show a list of read books and watched movies at profiles in bio node. So we create node references at bio. Field „field_read_books“ references book nodes and „field_watched_movies“ points to movie nodes.
Two usability problems now appear:
First: make the huge list of books and movies available for users within their bio for linking. At this time i'm using multiselect widget, which is ok, but not perfect.
BTW: Thanks to Multiselect. The standard select list with multiple values is something most users don't understand (holding ctrl-key while selecting values).
Second: Users are exploring the site. If they find content they've read or watched they want to click (select it as read or watched) it right at this content page. Right now they have to remember the title of node, go back to their profile edit page and link it – which is in most cases not userfriendly.
My question: Is there something that gives my a link widget with a submit action/button? If i can define which node and which cck-field can reference the current node it should be not that difficult. In my example only nodetype bio and field „field_read_books“ can reference a book. So a backreferencing action should be possible.
Maybe i missed something while searching for a solution, maybe there is somewhat generic with e.g. computed field which could be helpful. Thats why i'm asking here.
If you see a completely different way to achieve this, please tell me as well. :-)
Thanks for any hint, Ronald



Take a look at my patch
Take a look at my patch http://drupal.org/node/223074 which allows you to put in a back link on shared node reference fields automatically.
--
Gordon Heydon
Lead Drupal Developer - Lonely Planet
Just to make sure what this
Just to make sure what this patch does. It creates a backlink for a given Node Reference which can be used for views etc? But does it have any usability effects at frontend? I'm not sure if it's what i'm looking for.
Is the CCK issue queue the better place to request such features?
cheers, Ronald