Sync nodereference fields

markusH - April 4, 2007 - 12:53
Project:Field Actions
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm looking for an action to sync two nodereference fields to mimic two-way relationships between nodes (a bit like discussed here: http://drupal.org/node/120408 and http://drupal.org/node/60756). The behaviour should be like:

  • The two fields that are going to be synced should be configurable.
  • For each one of the outgoing nodereferences on the source node do something like:
    • Check the target node and find the matching field
    • add the source node as nodereference in that field
  • if removing nodereferences the action should remove the related references on any target node as well.

Does this sound sensible to have that as an action?

#1

mfredrickson - April 20, 2007 - 21:59

Totally. I think it would be a great action.

So if you have an number field in Node 1 and Node 2, and I updated Node2's number field to 7, Node1's number field would also be 7.

Does this describe what you are talking about?

#2

nickbn - July 9, 2009 - 17:47

Yes! Someone please write this module!

I tried the rules method and couldn't get that to work.... Looking into others.

 
 

Drupal is a registered trademark of Dries Buytaert.