Edit the aggregator module to display 1 news link in block

I *love* Drupal's simple RSS news aggregation system.  However, when adding my facebook status feed to my personal site just now I realised that a coding oversight restricts the automatic blocks created for aggregated feeds to a minimum of 2 posts.

Now, for something like showing your facebook status on a Drupal site, you probably only want to show one item - that being your latest status update, not the last 2 or 5 etc...  So, you'll need to go to 'modules/aggregator' and edit your copy of the aggregator.module file.

Look around line 269 for the following code - I've added a '1' to the array - this allows the aggregator blocks to offer you a display of just the most recent feed item.

Note: I found this issue with Drupal 5.1 - it may have been corrected since then...

      $form['block'] = array('#type' => 'select', '#title' => t('Number of news items in block'), '#default_value' => $value, '#options' => drupal_map_assoc(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)));
      return $form;

yes, i agree too. i like.

yes, i agree too. i like.

I agree, I love the new RSS

I agree, I love the new RSS system also. It's all these little things that continually seem to add up and make Drupal the best...