Node import: get CSV content

Last modified: March 29, 2009 - 07:56

The node import module enables importing of nodes of any type into your site using comma separated values format (CSV). One possible use is with contact manager to import lists of contacts. Users want to be able to import content from other systems into their site.

Node import accepts a CSV file or a TSV (tab separated text file) as input. CSV files can be generated using spreadsheet programs. Your CSV file must contain field names in its first row. These field names can be anything; except when using raw data import type. Third party modules are able to potentially add additional import types, e.g. the now defunct contact_manager.

(In order to import list values one has to separate the values inside the contents of the CSV files by the pipe symbol (that is the '|' character). Very useful for importing multi-value Taxonomies too.)

Data can be imported into the following node types:

  • Page
  • Story
  • Event
  • Flexinode
  • CCK Node Types

You can

  • read about the function that reads CSV files called fgetcsv.
  • import nodes at Administer >> Content managment >> Import content.
  • administer node permissions at Administer >> User management >> Permissions >> node_import module.
  • file issues, read about known bugs, and download the latest version on the node_import project page.
 
 

Drupal is a registered trademark of Dries Buytaert.