If you're moving to Drupal, there's a good chance that you'll need to import data.
The Feeds module is the most common way to import content and user data into Drupal.
In this tutorial, we're going to answer a question from one of members, "How do I import RSS feeds into Drupal?" As we answer his question, we'll give you an introduction to how the Feeds module works. whether you want to import from an RSS feed, a CSV file or another format.
Setting up Feeds
Our first step is create our import settings.
- Go to Structure > Feeds importers
- You'll see that four default types of import are already set up: Nodes, Users, Feed and OPML.
- Click "Add importer" in the top-right of the screen.
- At the bottom of the screen you have the same options that you do for content types. By default, you can set up all your imported content with menu links, revisions, comments, authoring information and publishing options.
- Enter a Name and Description for your import.
- Click Create.
- You'll be taken to a screen with four areas on the left: Basic settings, Fetcher, Parser and Processor.
- Click Settings next to Basic settings
- Under Attach to content type, choose where you want to import your content. By default all content is imported to a content type called "Feed Item".
- Under Periodic import, choose whether this content will be imported regularly or just once.
- Click Change next to Fetcher.
- You can decide whether you're importing from a file on your computer or from a URL (as with an RSS feed).
- Click Change next to Parser.
- This is a more detailed version of the Fetcher tab. Here you can decide exactly what import format you'd like to use:
- Click Change next to Processor.
- You can decide whether your import is going into nodes, users or taxonomies:
- Click Settings next to Processor.
- Here you can choose more detailed settings for your import:
- Click Mapping next to Processor.
- Here you can line up your data with your Drupal data structure. You can associate data from your RSS feed with the field ands information associated with yoru Drupal content. Fields will do a reasonable job of doing this if your contnet types are simple and have no fields, but if your content has fields, you will need to set up this mapping.
Feeds is set up so that doing an import is very similar to adding a normal content item.
- Click Add content.
- Click Feed.
- Enter the Title.
- Enter the URL of the RSS feed you want to import.
- Here you also get to choose all of the default content settings for the imported content:
- Click Save.
- You'll see a progress bar as Drupal imports your content.
- Check your site to validate the import. Your imported content really will be stored as actual nodes. If you want to import RSS feeds temporarily, try the Aggregator module.