integrating "Corresponding node reference" and "nodereference_url"

Events happening in the community are now at Drupal community events on www.drupal.org.
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.

Comments

I'm not sure I did correctly

iko's picture

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

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

Fine !

iko's picture

Fine !

Hi, can this also be done on

summit's picture

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

Content Construction Kit (CCK)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: