Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal 7 Node Import from CSV

I'm trying to import some content from a CSV into Drupal 7. I've tried the Feeds module but it doesn't allow me to match fields to my content type—as far as I can tell—which is a problem.

Previously—in Drupal 6—I have used Node Import but this isn't supported in Drupal 7. Any suggestions?

like image 638
Shaun Avatar asked Jan 04 '12 16:01

Shaun


People also ask

How do I import a CSV file into Drupal 7?

Navigate to - /admin/config/development/csv-importer. Select entity type, bundle, delimiter and file. Press import.

How do I export content in Drupal?

In order to export content in bulk, select the desired content nodes you wish to export in the content overview. You can then select the "Export content" action from the bulk actions dropdown menu and click on the "Apply to selected items" button.


2 Answers

The feeds module will work, you just need to do a title work.

  1. Create a new importer at admin/structure/feeds/create

  2. Change your Parser settings to use CSV

  3. Check the CSV Parser settings once saved and make sure the correct delimiter is selected

  4. Select "Node Processor" as your processor in your Processor type

  5. Verify your Processor settings. Select your content type. It is important to set a user for for the node author. There is currently a bug that will cause an error if the author is set to anonymous.

  6. Using the column names in your CSV map your columns to your Drupal 7 fields.

  7. Finally, go to /import and run your feed import.

    That should do it for you.

like image 87
Aaron Ortega Avatar answered Oct 20 '22 18:10

Aaron Ortega


Migrate is very robust and can do all kinds of importation.

For very simple things feed is certainly enough.

like image 1
gagarine Avatar answered Oct 20 '22 18:10

gagarine