Drupal Technical
[Drupal] How to pull feeds on Drupal websites?
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.
- Install aggregator module and since it is a core module save it in sites/modules folder.
- Enable the aggregator module. After setting the permissions according to your requirement, save it.
- Next, go in configuration-> webservices->feed aggregator.
- 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 .
- After adding the feed, save it.
- Then go in Feed aggregator -> Settings, there select the no. of items to be displayed and select "never" to include items.
- 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.
- 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.