See http://drupal.org/node/216072 for discussion leading up to this. The basic idea stated there was to make it so that the blocks created by the aggregator module for each feed are output in a way that is friendly to themers. This would be done by using strings for the block deltas that somehow identify the feed (e.g., 'feed-planet-drupal' rather than 'feed-1' as is done now).
I can think of two ways to do this:
1. Create the block delta as a unique string based on the initial title given to the feed (this is how the menu module creates its blocks). This would require changes to the database tables. It would also mean that if the Planet Drupal feed is locally titled "Planet Drupal" on my site but "News About Drupal" on someone else's, then my site would have 'block-aggregator-feed-planet-drupal' as the output for themers to work with, while the other site would have 'block-aggregator-feed-news-about-drupal'.
2. Or, instead, would it be possible to base the delta on the feed URL? So that any site pulling in the feed from http://drupal.org/planet/rss.xml would be able to theme that with 'block-aggregator-feed-drupal-org-planet' or something similar. There are more edge cases to deal with here, but it might be really cool, since it means themers could provide styles tailored to a particular RSS feed that would work across sites without any modifications.
Any thoughts?
Comments
Comment #1
marcingy commentedBumping to d8.
Comment #12
spokjeThe
aggregatormodule has been removed from Core in10.0.x-devand now lives on as a contrib module.Issues in the Core queue about the
aggregatormodule, like this one, have been moved to the contrib module queue.Comment #13
larowlanYou can do this in a preprocess hook, where you'll have access to the block configuration