Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
goodeit CreditAttribution: goodeit commentedduplicate of http://drupal.org/node/236722
Comment #2
mdowsett CreditAttribution: mdowsett commentedIn 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.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
wilgrace CreditAttribution: wilgrace commentedI'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?!?