Using the Feeds Module for Drupal Imports
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.
Installing Feeds
To use Feeds, we need to install these 3 modules, Feeds, Features and Job Scheduler:
- http://drupal.org/project/feeds
- http://drupal.org/project/features
- http://drupal.org/project/job_scheduler
Enable all four boxes in the Feeds area:
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.
Using Feeds
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.
Thanks for the tutorial. I have followed it completely, however if I sellect Read More on the page I dont see the full article.
How do you get a source link to display?
Thanks for the tutorial!!! 🙂 It helped me a lot…
Thanks for this great tutorial. I followed all the steps and searched on many sites. But I cannot see the fields. Node is created, but it is empty. What can be the reason? Can you send a sample xml file?
lo mismo que los anteriores xD (:()
When I try and import a feed I get this error…
SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘pagination’ cannot be null
Any ideas on what I am doing wrong?
Thanks
Karen
if i want to add a image in drupal 8 in feed, please tell me the steps because i selected the feild but not able to reflect the hero image