Last updated February 12, 2014. Created by meitar on September 5, 2001.
Edited by iantresman, mrP, batigolix, eiland. Log in to edit this page.

The Aggregator module is a feed reader that is included in Drupal core. When enabled, the Aggregator module can fetch syndicated content from other websites.

The Aggregator module can gather, read, and display news, text, images, and other content from external news sites and blogs around the internet. The Aggregator module fetches content from other sites; it does not generate syndication feeds. (To enable XML syndication on your site, turn on the Syndicate block in Administer > Site Building > Blocks (Drupal 6.x or earlier) or Administer > Structure > Blocks (Drupal 7.x and 8.x).)

When used with other modules, the Aggregator module can make these feed items available from a Drupal site using common syndication formats including RSS, Atom, and RDF. (Learn more about site syndication formats.)

Uses

Users can:

  • View the latest feed content chronologically in the main news aggregator display
  • View the latest feed content by source

The default permissions for the Aggregator module must be changed to allow users to view the subscribed content.

Site administrators can:

  • Add, edit, and delete feeds
  • Choose how often Aggregator checks each individual feed for new content
  • Tag individual feeds with categories, offering selective grouping of feeds in separate displays
  • Enable or disable blocks for every feed and feed category in the block administration page
  • List the latest news for individual or categorized sources to display as blocks in the block administration page

The news aggregator requires cron to check for the latest news from the sites being aggregrated. Drupal also provides a machine-readable OPML file of all of your subscribed feeds.

In addition to providing subscribed content through the news aggregator, the Aggregator module automatically creates a module block for every feed you have subscribed to, as well as every feed category. By default, these new blocks are disabled, though an administrator can choose to enable a particular feed or category feed block by moving them to an enabled region.

To syndicate content from another website, obtain the fully-qualified URL of the remote site's syndication page. Common filename extensions for syndication pages are .rss, .xml and .rdf. Most sites that offer syndication will have an obvious link to their syndication page. Often you need only look for a red XML button, such as the one Drupal uses for site syndication, though some sites do not make their RSS feeds easy to find and not all sites offer syndication.

Notes

Drupal 6 core Feed Aggregator does not import certain RSS Feed item types, such as <enclosure> which is used to specify various media formats such as images. Modules such as Views RSS will allow you to create your own RSS Feeds for export, which will handle a wider range of item types (you just can't import them into Drupal 6 with Feed Aggegator).

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

Hello,

I recently switched from WP to Drupal and simply loving it. I have a question about the aggregator. I'm using the Reuters feed which is looks like this for example: http://feeds.reuters.com/reuters/technologyNews

When i'm logged in as the admin the aggregator displays fine but if I login as an authenticated user or anonymous the block just disappears.

Any idea as to how to fix this? I'm on Drupal 6

**********Ignore the request above*************

Fixed this problem by going to the user permissions section in administer and enabling (checking the boxes) under aggregator section.

Thanks for posting the solution. It saved me hours searching the web!

It occurs to me that this is a strange default setting. I would have thought that the defaults would be to let all users "View news feeds"?

Obviously not.

I am using Drupal 7.

Drupal Sites: www.edenextdata.com

I share items of interest in Google Reader, and use aggregator to track the RSS feed of these shared items. I just want a block displaying links to those stories, I don't want to reproduce the actual content on my website, which is the case at the moment, and it makes me uncomfortable. Unfortunately, there doesn't seem to be an option to disable this page of reproduced content. Is there a workaround? Or if you know of a module that will allow block-only display of RSS feeds, can you point me to it?

I'm able to sign a certain feed to multiple categories - but the items in the one feed only appear in a single category - Shouldn't the items in a feed appear in whatever category it is assigned to? Am I missing something?

I'm switching to a Drupal environment from a static one. I've used an RSS feed on my old site: http://www.scholarscorner.com/movies.php
and it pulls the images from Netflix reviews into my pages. The feed aggregator on the new site pulls the text but not the images. Is there a way to activate them?
Thanks,
Jeff

Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.com
(724)-482-2015

Was kind of simple I just had to allow Only local images are allowed. tags in the administer/content management/aggregator/settings area

Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.com
(724)-482-2015

What tag(s) did you allow - Only local images are allowed.? I tried that, but it's still not bringing in the images. They're formatted in the XML like this:

<media:thumbnail url="http://www.bjtonline.com/uploads/tx_bjt/FINAL3_Flexjet_thumb_b.jpg"/>

Did you ever find a solution for the tags and getting their content shown?

Allow the img tag.

Some things I've learned:
You might also need to "remove" current feed items and regenerate, clear cache, run chron. Photos don't appear on all feeds. They don't appear in the URL /aggregator, nor in /aggregator/sources, but do appear in /aggregator/sources/(your source id)

I'm hoping to find ways to better control what shows and what doesn't.

I too am having this issue. I tried using the img tag, the media tag, and the media:thumbnail tag as allowed tags and still Drupal does not show this image.

Allowed the following tags. Adding spaces so that it renders on this page.

<_ gd:image _> <_ img _> <_ media _> <_ media:thumbnail _>

(You should get the idea. remove the spaces and underscores.)

I was able to import images in Drupal 6 with Feed Aggegator, with a customer RSS feed, by using the <author> item type to carry the image URL (the <enclosure> item type is not supported ). More details here.

I was able to get this up and running on metaskim News Aggregator

Hi metaskim. I went to your site, and I notice you have set up different feeds on different pages. When I tried, I created 2 categories in aggregator, and what it did was create a Category submenu to my main feed page, but when I clicked on that and selected a different category, the feed page changed to that category and I couldn't get the other feed back on that page.

My menu looked like this

                                                               Movies
   Movie Feed Page < Categories <
                                                               Culture News

I picked culture news and it knocked Movies off the feed page.

There has to be a way of assigning different feeds to different pages?? No?

TIA,
Jeff

Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.com
(724)-482-2015

Hi there - driving me crazy - is it possible to change the title of the /aggregator/sources/# page. The currently reads "Sources" but I can't find it anywhere in the module code and in no settings..

:-)

Didn't see any previous replies to your post.

On Drupal 7, just go to Structure --> Menus; and you'll be able to modify the title of the aggregator link. By changing the title of the link, you'll also change the title of the page.

Cheers!

-Rashi

"Receive with simplicity everything that happens to you."

Hi Folks,

A while back I tried to add http://www.bjp-online.com/feeds/rss as an aggregator feed. I immediately got an error message so deleted it as normal. Unfortunately, every time cron runs it mysteriously adds the feed again to both the admin interface and the SQL database and every viewer of the site gets a pretty ugly error message as a result.

As I cannot seem to permanently delete the feed source, and because the source itself is bad i.e. causes errors, a cron run basically ruins my site and I have had to disable the aggregator module. I have tried deleting the feed from the database directly using phpMyAdmin but every time cron runs, the troublesome feed re-appears in both the drupal admin interface and the database.

I can only imagine cron is still trying to poll items for the previously deleted feed but I don't know enough about how cron or the aggregator module works to stop it from doing this.

Any advice would be greatly appreciated.

Okay, so here's my workaround.

I've cloned the aggregator module and used a text editor to replace all references to the word 'aggregator' with [in my case] 'agggregator' and uploaded the agggregator module to the 'sites>all>modules' folder. This allows me to run two version of the aggregator module in parallel with completely independent entries in my database.

Since something had become corrupt in the interplay between the original aggregator module, cron and the database, I can now deactivate the aggregator module, activate the agggregator module and add my feed sources again - this time without the troublesome bjp-online one.

I don't know enough about the interplay between cron, the aggregator module and the database to locate the real problem, so this will have to do.

Technically this is not a core hack but it is a fork, so if you go down this road you run the risk of missing out on the very update to the aggregator module which will would have solved this problem.

Hi,

Is there a way to add a block to the top of the main aggregator. I want to add a small paragraph above the aggregator to give a summary of what is being displayed. I know its possible by using the block version of the aggregator, but is it possible using the main /aggregator/sources/1 url

IMy aggregator module won't update, I am getting this error (I see others have been getting it also)...

Failed: PDOException: SQLSTATE[42000]: [Microsoft][SQL Server Native Client 11.0][SQL Server]Column 'url' in table 'aggregator_feed' is of a type that is invalid for use as a key column in an index.: CREATE INDEX url_idx ON [{aggregator_feed}] (url); Array ( ) in db_add_index() (line 2941 of D:\inetpub\wwwroot\tampagov\includes\database\database.inc).

Is this a problem with the SQL module or with Aggregator? If SQL does not allow text fields as indexes it seems like it would be an aggregator problem but I don't see it listed here?

Any help is appreciated, and if this doesn't belong here I'd appreciate knowing that also.

thanks
terri

Hello,
Running with drupal 7,
After enabling the aggregator module the only option i have under web services is the rss publishing.
I can't see the feed agregator and don't realy know why.
I'd appriciate if someone can shec some light on that.
Thanks

Hi,

some collaborative tools like alfrescoShare, give authenticated RSS feeds, usually with basic http authentication.
Shouldn't be great for the drupal RSS aggregator to have this basic authentication over https feeds as an option, re-using the username/password in drupal ?

Bernard

B. Paris
IT project manager

Anyone have any advice on how I could adjust the <a href> in a list of aggregated links to include itemprop="relatedLink" ? I can't seem to determine a php file that affects this output.

Matt Lovato

I found the solution: aggregator.module

Matt Lovato