Jump to content
How to Import Content in Your Drupal Site?
Submitted by j.mike
Posted Feb 10 2013 10:37 PM
The most challenging part of switching your website to Drupal CMS is importing content. It is something that every developer and Drupal development company dreads.Whether it’s the awkward SQL commands, line by line data parsing or the images of CSV custom scripts, almost every developer ends banging his head. But the good news is that these are all things of past. Developers now have a reason to rejoice, thanks to the Feeds module from the Drupal community.
The Feeds Module renders numerous functions but CSV file import counts as one of its major functions. Let’s take a look how this module simplifies the process of importing content in your Drupal site.
Installing Feeds Module
Install the module onto your Drupal site. If you are using Drupal 7 it is a one-click process, as this version of Drupal facilitates web-based module installation. But if you are operating lower versions of Drupal, then you are out of luck! You will have to go about for manual installation. For installing, firstly download the module. Unzip it and upload it in the modules directory of your website. Now visit the Admin module segment of your site and install it.
Image source: http://img.skitch.co...ka8cafneed2.jpg
Now that the module is installed, it’s time to bid adieu to the easier part. Moving ahead you might have to do some clicking, but it is definitely worth it.
Importing Content to Your Drupal Site
As the importing process begins, you need to create a new Feed Importer and assign it with a name. This name will be used in the URL that you will use in accessing the freshly created importer. There are a number of steps involved in creating a feed importer, which is mentioned below.
Image source - http://img.skitch.co...qyh35rwd3yw.jpg
1. Basic Settings: In this section, you need to change the content type in ‘attach to’ section to the ‘stand alone form’ and set the ‘minimum refresh’ option as ‘never’.
2. Fetcher: This can be set to either of the two values- HTTP retrieval or direct file upload.
3. Parser: Choose a CSV parser of your choice. Under the settings tab of parser section, set default field delimiter equivalent to comma.
4. Processor: Choose the node processor. Under mapping section, match the fields in your content type and CSV column headers. Add each column header to this page which you are likely to import in your Drupal site.
5. Node Processor Settings: Select the content type which you wish to import in your site under the settings section. You also have the option of setting the existing nodes that need to be updated, if you wish to remove the content that you are importing.
6. Create Node Settings: Under this section you map the field name of the node to the CSV column header.
This is how you set up the entire importing process. The steps might be aplenty, but are very simplistic. Now it is time to actually import the content. This is how you have to go about it:
1. Visit the importing page and select the importer you have created using the aforementioned steps.
2. Upload all CSV files. Feeds module will automatically start functioning and creating new nodes. In case you misconduct any of the steps you have the option of deleting previous import and begin a new one.
3. Once the nodes are created the content can be easily imported into the site.
Feeds Module gives you the freedom from the gruesome process of importing content. Try it out today yourself or hire Drupal developers to accomplish the task for you in a proficient manner.