[Drupal] How to pull feeds on Drupal websites?

| | 1 min read

While working on Drupal sites, we could come across a requirement to show the contents aggregated from different domains. The content could be a blog of the site, list of recent articles and comments etc. For Aggregating contents into Drupal, feeds system is used. By aggregating the contents we can show the combined collection of data/content from different Drupal sites on one single domain.

  1. Install aggregator module and since it is a core module save it in sites/modules folder.
  2. Enable the aggregator module. After setting the permissions according to your requirement, save it.
  3. Next, go in configuration-> webservices->feed aggregator.
  4. Click on "Add feed" -> in that add title, the path (from where you want to pull the feeds), the time interval of updation and no. of items you want to display in block .
  5. After adding the feed, save it.
  6. Then go in Feed aggregator -> Settings, there select the no. of items to be displayed and select "never" to include items.
  7. Click on feed aggregator -> list page, there click on "update items". On clicking on update items you can see your items getting added in feeds.
  8. To assign the feeds in block, go in structure -> blocks then in disabled section of blocks, you can see the block name you have given. Assign that block in your desired region.