Should node_import support referencing a node? I tried entering a nid into the field of the CSV file being imported and mapping it to the proper field (a node reference field) but it's not being picked up. I also tried importing using the name of the node I wanted to reference but that didn't work either.

WhenI go and edit an imported node, I can manually reference a node using the drop down or autocomplete in the node edit and it works fine.

Comments

goodeit’s picture

Status: Active » Closed (duplicate)
mdowsett’s picture

Status: Closed (duplicate) » Fixed

In your CCK setup for that field, change it from 'Select List' to 'Autocomplete Text Field' and then by putting in the nid you want to reference in your CSV file you are importing, it works.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

wilgrace’s picture

I'm desperately trying to import to a nodereference field, and can't get the solution above working - I'm getting this error:
Illegal offset type in nodereferrer.module on line 454.

I've tried just with the nid (eg. 417) and in this format: nid:417. Neither work.

This thread is saying to use a Select Box and the full reference name: http://drupal.org/node/444884#comment-1986070
but that's not working either.

Is nodereference supported by Node Import?!?