Community Documentation

Configuring news feeds

Last updated April 22, 2010. Created by steinmb on May 4, 2005.
Edited by weyekin, meitar, puregin. Log in to edit this page.

To subscribe to an RSS feed on another site using Drupal 5 and 6, click administer » aggregator. Once there, select the add feed tab at the top of the aggregator administration page.

To subscribe to an RSS feed on another site using Drupal 7, go to Configuration and choose Web Services then Aggregator (admin/config/services/aggregator).

Drupal will then ask for the following:

  • Title -- The text entered here will be used in your news aggregator, within the administration configuration section, and as title for the news feed block. As a general rule, use the web site name from which the feed originates.
  • URL -- Here you'll enter the fully-qualified URL for the feed for the site you want to subscribe to. Some sites like flickr.com generate a URL containing a "@". Drupal does not accept this and to make it work you have to replace "@" with "%40".
  • Update interval -- The update interval is how often Drupal will automatically access the RSS URL for the site for fresh content. The 1 hour default is typically a good minimum to use. Accessing another site's RSS page more frequently can be considered impolite because it requires the other site's server to handle your automatic requests. To take advantage of this feature, note that cron.php must be configured to have your feeds updated regularly. Otherwise, you'll have to manually update feeds one at a time within the news aggregation administration (administer » aggregator) section.

Once you submit your new feed, check to see if it is working properly. Select update items on the main news aggregation page. If you do not see any items listed for that feed, edit the feed and make sure that the URL was entered correctly.

Comments

Also-ran: URL

The Aggregator module also does not like pipe (|) characters in the feed's URL, so these must be replaced with "%7C".

There are probably others...

--Andy
Developing Drupal websites for Livelink New Media

Extended duration for "Discard items older than:

From http://drupal.org/node/60468#comment-1407774
1. create a folder named aggregator_settings (under sites/all/modules)
2. create a file aggregator_settings.info in the aggregator_settings folder
3. add this code in the aggregator_settings.info file:

name = Aggregator discard items setting
description = "Extended duration for "Discard items older than:"
dependencies[] = aggregator
package = My custom modules
version = VERSION
core = 6.x

4. create a file aggregator_settings.module in the aggregator_settings folder
5. add this code in the aggregator_settings.module file:
<?php
/**
* from http://drupal.org/node/60468#comment-1407774
*/

function aggregator_settings_form_aggregator_admin_settings_alter(&$form, &$form_state) {
$form['aggregator_clear']['#options'][31556926]  = "1 year";
$form['aggregator_clear']['#options'][63113851]  = "2 years";
$form['aggregator_clear']['#options'][157784630]  = "5 years";                 
}

6. activate the module and go to yoursitename.com/admin/content/aggregator/settings to see the new options under "Discard items older than: "
---------------
Artonfix - modern art

Directing feed to a page other than <front>

I tried ticking put on all pages except Less than sign front greater than sign and it does so know the feed works what I want to do is put the feed(s) on the Sports page only.
I know the box to tick what I can't seem to figure out is what to type in the box.

I tried less than sign Sports greater than sign all small letters sports within the signs even tried the node of the page but can only get a feed to show up if I let it go to all pages or direct it only to the front enclosed in less than greater than signs.
What is the format to get it to show up only on the desired page? Such as Sports or Environmental Issues or World news?
***********************************

I figured it out. node/number.
I'm less than a week into Drupal so still trying to get used to things.

***************

If you always do what you have always done you will always get what you always got.

About this page

Drupal version
Drupal 5.x, Drupal 6.x, Drupal 7.x
Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here