Eache news item is wrapped in :

$output .= "<div class=\"news-item\">\n";

To apply different CSS styles to different feeds I had to change that to:

$output .= "<div class=\"news-item-".$item->fid."\" >\n";

The attached patch works fine (and applies fine, too) drupal 4.6.3.

CommentFileSizeAuthor
submitted_aggregator_0.patch637 bytesscutari
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Bèr Kessels’s picture

Status: Needs review » Closed (won't fix)

-1
A class must be general. Please add such specific code to your theme, instead of to the core. Adding a FID to the class enforces you to edit the CSS file everytime you add or remove a feed.

http://drupal.org/node/23584 will give you even more power.

scutari’s picture

Ok, I'll see if that wrapper does indeed solve my problem.

Thanks a lot.
Marco