Community Documentation

Creating categories in the aggregator

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

Using Drupal 5 and 6

  1. Go to Administer and choose Aggregator
  2. Click on the Add Category tab.
  3. Add a title to the category, then a description.

Using Drupal 7

  1. Navigate to the Feed Aggregator page (admin/config/services/aggregator)
  2. Click on the Add Category link.

The module will create a block for each category. To place the block on your page, navigate to the Blocks page and choose a region in which to display the block.

Now every time you add a feed, you can select a category which the items will automatically appear under. Alternatively, you can tag individual items in your aggregator to appear in a category.

Comments

Empty categories list under each post

I'm using Drupal 6.19, and I've just started using the code Aggregate module (which is great, thanks). Just noticed a minor gripe though: I added a category, and then assigned a feed to it, and then deleted it (the category), and now when I access that feed, all the items have their little meta div at the bottom (class="feed-item-categories"), which says "Categories:", but doesn't have anything listed.

Is there a way to stop this displaying if there are no categories for the item? Obviously I can do this in CSS (#aggregator .feed-item-categories {display: none;}), but this is a horrible workaround, and would not work if you did want to display categories for some items.

Purging Categories

Not sure if this is the right place to post but I have a small issue with the aggregator module and the use of categories. I have set rss feeds to only display the last 8 weeks feeds. One thing I notice is that even though old feeds are removed, the links to them in categories does not appear to be. I am using Drupal 6.22.

This is resulting in the database swelling to a huge size now.

Is there any way of deleting these old feed links in the categories.

Freelance Web Design and Development
---
http://www.danlobo.co.uk

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