Hi! I'm trying to integrate this fantastic module, with another fantastic module: Node Reference Create. But I need some help.
I have found the place where the nodereference widget is defined:
Line 62, reference_preview.module

  if ($form_state['post']['op'] != t('Change basic information') && $form['#field']['widget']['type'] == 'nodereference_autocomplete') {

So I've just change it with the Node Reference Create widget type: 'noderefcreate_autocomplete', and it works, but only with a single value. I also would like to enable both widgets. Any ideas?
Thanks!

Comments

viibfa’s picture

Title: Integrate with Node Reference Create » Integration with Node Reference Create
hefox’s picture

I don't use noderef create, but I'd suggest you look at node relationships module which likely provides similair functionality.

Likely the javascript is unable to target multiple nodereference create due to different markup

hefox’s picture

Status: Active » Closed (won't fix)

Re-open if willing to provide a patch for it.

dominikb1888’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Closed (won't fix) » Needs review
StatusFileSize
new503 bytes

I attached a patch which solves the issue for 2.x-dev. Works fine with noderelationships, reference_preview, and noderefcreate.