Community & Support

How do I get Feed Aggregator blocks to display images?

On Ubersoft.net I use imagecache to make little thumbnails of my comics that update every time a comic is updated. I have used Views 2 and mediarss to create an RSS feed for each of these thumbnails.

On another site (which is not yet live) I used feed aggregator to import each of those feeds. My intent was to create blocks of each of those feeds that would essentially duplicate the feature on Ubersoft.net -- i.e., it would display thumbnails of each comic that would update as the comics were updated (with a slight delay).

The problem is that the blocks of each of the feeds do not display the thumbnail image. If you click on the "more" link you get sent to full aggregation which displays the thumbnail image with no problems. So my question is, how can I get the image to show up in the block?

I've already added the img tag to the feed aggregator settings area, but that has no noticeable effect whatsoever.

Any thoughts? If the default aggregator feed doesn't work, are there other modules that will? Barring that, is there a way to create a custom block that will display this feed correctly?

Comments

Have you found a solution to

Have you found a solution to this? I'm looking for the same thing. I would love for my feed blocks to have images in them.

Not a solution in Drupal. I'm

Not a solution in Drupal. I'm using rss2html for this now.

Custom Module

This thread is old, but I'm going to post a solution for searchers who come upon this.

The images are being blocked in Views because the aggregator plugin is running them through filter_xss. You can bypass this by writing a custom module with the following function in it:

function your_module_name_views_data_alter(&$data) {
  $data['aggregator_item']['description']['field']['handler'] = 'views_handler_field_markup';
  $data['aggregator_item']['description']['field']['format'] =FILTER_FORMAT_DEFAULT;
}

This will run the content through whatever your default input filter is, Filtered HTML or Full HTML, whatever.

Note: If you aren't in control of the feeds you are aggregating, you are opening yourself up to having XSS attacks on your site by doing this! In my case, and the original poster's case, we're aggregating our own content, so it should be fine. Just understand what you are you doing.