aggregator images
kwasiamp - June 28, 2009 - 13:59
Hi i'm new to drupal, the problem that i'm having is that the core drupal aggregator displays images within the source...but it does not when you display it in a block...and what i want is that the block that displays the feed, should display both the title and description with the images on the side of the block. Please help if you can

I Second That!
I've spent the last 24 hrs. looking the forums up and down, and found nothing. Anybody please!?
Here's how I was printing out the category block that the Aggregator module provides:
<?php
$block = module_invoke ('aggregator', 'block', 'view', 'feed-1');
print $block['content'];
?>
--- Just prints the titles of the latest items.
Things I've tried already:
- Tried assigning the block (category block that successfully pulls two rss feeds, WITH images), to a region, then printing out that region on my drupal front page.
- Looked in block.tpl.php to see that it's printing out all content, which it is ($block->content;)
- Printing out all the variables on my Drupal front page w/ get_defined_vars() to see if the images were being passed, but just not being printed.
- Checked permissions to make sure there was nothing screwy happening there keeping the images from showing.
Again, when I go to the page that Aggregator provides for the Category - /aggregator/categories/1 - the source code is pulling all the content correctly (images, teaser text, title). But when I print out the block that Aggregator provides for that category, the only output I get is the title of the feed items.
The only thing left I know to do is to look in the module code itself, and see if it's not passing the images / teaser from the Aggregated feed to the block it provides. Not real good with php, so I'm not sure I have the eye to catch it.
Is there somewhere in the block's settings that's not allowing img tags? Surely not...
Any help is greatly appreciated..... Thanks
Another solution
Hi,
I'm sure you have already checked this, but under the Settings tab at administer >> content management >> feed aggregator, there is a list of allowed HTML tags, and the img tag is not present by default. Just a thought.
Found a solution... not terribly easy though
Hey kwasiamp,
I finally came across something helpful. I had to search the "Issues" pages for hours, but here it is:
http://drupal.org/node/223841
Hopefully the explanations in that thread answers your question. It worked for me. I can now see all the items (images, teaser, title) from the rss feed in the category block that Aggregator provides.