integrating "Corresponding node reference" and "nodereference_url"

endriu's picture

Hi all!
I'm trying to build a book-like content tree based on node references.

I woluld like automatically creating these relationships:

Parent --- a --> Child
Parent <---b --- Child

by means of two modules which automatically set node references:

http://drupal.org/project/nodereference_url
http://drupal.org/project/cnr

  1. nodereference_url puts an "add Child" link on Parent page, letting you create a new Child and setting Child's nodereference to its parent automatically. (noderef "b")
  2. Corresponding node reference updates Parent nodereference toward a Child (noderef "a") when Child's nodereference toward its Parent is set. (noderef "b" at point 1)

However CNR works only when both Parent and Child node references have unlimited values set.
With nodereference_url there is no choice at all.

It would be great if these two modules would work together...any help/idea?

Thank you in advance,
Andrea.

Login or register to post comments

I'm not sure I did correctly

iko - Thu, 2009-12-10 13:07

I'm not sure I did correctly understand your need but I could make a NR_URL field work with CNR ; I think I "cheated" somehow by first creating a "normal" node reference field (set to "unlimited values"), then setting the CNR correspondence, and then changing the field widget to nodereference_url. The CNR does work properly.

Try that ...


Great!!

endriu's picture
endriu - Mon, 2009-12-14 07:49

You are great!!!! This works perfectly!
Thank you very much!


Fine !

iko - Mon, 2009-12-14 10:34

Fine !


Hi, can this also be done on

Summit - Tue, 2011-02-01 07:57

Hi, can this also be done on à site with already lots of nodes?
Thanks à lot in advance for your reply!
Greetings, Martijn