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.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | aggregator_support.patch | 743 bytes | eaton |
| #6 | aggregator.views_.inc_.txt | 9.3 KB | eaton |
| #6 | views_plugin_row_aggregator_rss.inc_.txt | 1.88 KB | eaton |
| #6 | views_handler_field_aggregator_title_link.inc_.txt | 1.08 KB | eaton |
| #6 | views_handler_argument_aggregator_fid.inc_.inc_.txt | 605 bytes | eaton |
Comments
Comment #1
domesticat commentedI'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?
Comment #2
eaton commentedThis 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.
Comment #3
domesticat commentedThat'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.
Comment #4
drewish commentedsubscribing. i'll probably have some time to update this next week.
Comment #5
drewish commentedhere's a patch for the aggregator.views.inc file and the aggregator_views_api()... the handlers are attached as txt files.
Comment #6
eaton commentedJust 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/
Comment #7
merlinofchaos commentedCommitted! 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.
Comment #8
boris mann commentedMarking for follow up, since I'm going to build one of these.
Comment #10
Martin2010 commentedCan 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.
Comment #11
merlinofchaos commentedMartin: You should create a new issue.
Comment #12
dropcube commented#373771: handler for aggregator_feed > fid doesn't exist