Here's a very basic first stab at aggregator integration for Views 2. I supports the aggregator_feed and aggregator_item tables at present; I haven't gone in to tweak the joins for aggregator_category and aggregator_category_item, since they require taxonomy-esque many to many joins. In addition, the 'image' field core associates with feeds isn't supported currently; it's not an image url at all, but a raw html field that sites jam various things into. Not sure about the best way to consistently handle that.

Once the basics are done, an 'aggregator item' row style needs to be added using the usual aggregator module's theme functions. Then, after that, rss output of aggregator item views -- that would let us use views to suck in aggregated items and mix them up, then spit them out as a new feed. woo woo.

Comments

domesticat’s picture

I'd be interested in testing this patch, but I need a little more information first. I renamed the file to aggregator.views.inc and placed it in sites/all/modules/views/modules but when I create a new view, I'm not seeing any of the aggregator options. Did I miss something?

eaton’s picture

This patch needs to be updated to work with Views RC2 -- it doesn't have the necessary metadata to announce its plugins properly, and needs to put its handlers in separate files. I'll try to take a crack at it when I get a chance.

domesticat’s picture

That'd be nifty. While this isn't a critical feature, it'd be useful and I'll be happy to test whatever you write. Feel free to contact me off-site if you'd like.

drewish’s picture

subscribing. i'll probably have some time to update this next week.

drewish’s picture

Status: Needs work » Needs review
StatusFileSize
new605 bytes
new1.08 KB
new9.74 KB

here's a patch for the aggregator.views.inc file and the aggregator_views_api()... the handlers are attached as txt files.

eaton’s picture

Just ran it through its paces; I added support for generating outgoing feeds via Views; it pipes things through the same tpl files as node, comment, and other similar feeds. Good times!

The files should be placed in the usual locations, following the rest of the conventions in views/modules/

merlinofchaos’s picture

Status: Needs review » Fixed

Committed! I have not rigorously tested this as I have no good source aggregator data, so I'd love some more feedback, but this looks pretty good.

boris mann’s picture

Marking for follow up, since I'm going to build one of these.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Martin2010’s picture

Can someone please help me with this.

The new version of Views allows us to incorporate Aggregator with it.

Everything works fine so far..but it only let us choose 1 aggregator feed for Views. I need to setup 5 different Aggregator feeds with 5 different Views. And i'd like to do it all with Aggregator.

merlinofchaos’s picture

Martin: You should create a new issue.

dropcube’s picture