Showing an RSS Feed in a Drupal Block

Drupal Aggregator Module

In this tutorial we’ll show you how to place an RSS feed inside a block. You can then display that RSS feed anywhere around your theme. We don’t need any extra modules this week as we’ll be using the core Aggregator Module:

Setting up the Aggregator Module

First of all, we’re going to set up the Aggregator module so that it can handle the RSS feeds for us.

  • Step 1: Go to Administer >> Site building >> Modules. Check the box next to “Aggregator” and click Save Configuration.
  • Step 2: Go to Administer >> click “By module” at the top.
  • Step 3: Find the “Aggregator” area right at the top and then click on “Feed aggregator”:
  • Drupal Aggregator Module

  • Step 4: Click “Add Feed” along the top and enter the address of your RSS feed:
  • Drupal Aggregator Module

  • Step 5: Click “Save” and then “update items”. That will load the latest articles from your RSS feed.

Placing the RSS Feed in a Block

Now that Aggregator is handling the RSS feeds for us, we’ll go and place it into a block on our site:

  • Step 6: Go to Administer >> Site building >> Blocks. Scroll down to find the block with the same name as the feed your created in Step 4. Aggregator has automatically created this for you.
  • Step 7: More than likely, you will need to click “Configure” next to the block and choose a new title. Aggregator creates a default title of “[feed name] feed latest items”.
  • Step 8: Publish the block and check to see how it looks on your site:
  • Drupal Aggregator Module

{loadposition drupalnewsletter}

Author

  • Robbie Adair

    Robbie started her career in corporate training until starting her own custom training and media company almost seventeen years ago. In 2010, she began doing classroom training for OSTraining while running Media A-Team. She is often presenting about various tech topics such as Joomla, Fabrik, Web Development, Social Media, and Augmented Reality. She loves seeing that "ah-ha" moment in peoples eyes in her sessions and workshops. She lives in Houston, Texas, but enjoys all the travel for client work and speaking gigs.

0 0 votes
Article Rating
Subscribe
Notify of
3 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Amber
Amber
11 years ago

Hi there. I managed to set up a news feed that appears only in the admin screen. I want it to appear regardless of usergroup.

I created a category and linked the feeds to the category. Then assigned the block to the desired location. I made sure that all user groups can see the feed via the block configuration screen, and made sure that it should appear on all pages.

But it does not…

help?

Nebula Haze
Nebula Haze
10 years ago

RSS block not appearing after following these instructions?
Just so you know, the RSS feed will not appear in the block until cron runs. You can manually get the RSS feed to update and populate the block right away by following these instructions:
1.) Go to Administrator > Site Configuration by Module
2.) Under Aggregator, click “Feed Aggregator”.
3.) Click “Update items” next to your feed in the Feed Overview.
Hope that helps someone else!

ginmonty
ginmonty
10 years ago

I have set up a news feed successfully but my title appears italicized. I would like to remove the italics from the title of my feed. Is that possible?

3
0
Would love your thoughts, please comment.x
()
x