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.
| Comment | File | Size | Author |
|---|---|---|---|
| submitted_aggregator_0.patch | 637 bytes | scutari |
Comments
Comment #1
Bèr Kessels commented-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.
Comment #2
scutari commentedOk, I'll see if that wrapper does indeed solve my problem.
Thanks a lot.
Marco