I've created a content type (using CCK) called "Country presence" which is intended to enable a user to show whether an item (the node title) is present or not in a list of countries. Within this content type are a number of fields for each continent (seemed logical to me), and for each of these the user is able to select from a list of checkboxes each country. Whilst creating this content type, the following was entered in the "Allowed values list" for the field "south_america":

AR|Argentina
BL|Bolivia
BR|Brazil
CI|Chile
CO|Colombia
EC|Ecuador
FK|Falkland Islands
FG|French Guiana
GY|Guyana
PA|Paraguay
PE|Peru
NS|Suriname
UY|Uruguay
VE|Venezuela

My question is simple, how do I structure my CSV file to be able to import into this, as I've tried a couple of what I felt were logical methods (shown below), but all to no avail.

object	africa	europe	asia
sample map	Angola	France	Japan
object	africa	europe	asia
sample map	ag	fr	ja

Comments

sdrycroft’s picture

I'll assume by the lack of reply that this module doesn't actually fully support the CCK module. Perhaps this should be stated on the modules front page.

sdrycroft’s picture

I'll assume by the lack of reply that this module doesn't actually fully support the CCK module. Perhaps this should be stated on the module's front page.

dwees’s picture

See this comment for a patch which may solve your issue.

Dave

Robrecht Jacques’s picture

Status: Active » Fixed

Fixed in 5.x-1.x-dev. Will be included in the next release of node_import (5.x-1.8) released later today.

The following are allowed:

object africa europe asia
sample map Angola France Japan
object africa europe asia
sample map ag fr ja

To supply multiple values for one field:

object africa europe asia
sample map Angola France||Belgium Japan
object africa europe asia
sample map ag fr||be ja
object africa europe asia
sample map ag fr||Belgium ja

Thanks for reporting this.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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