Closed (fixed)
Project:
Aggregator Summary
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2008 at 15:42 UTC
Updated:
9 Jul 2009 at 20:13 UTC
How can I display images and teaser text in the aggregator-summary bloc. By default only title appear?
Comments
Comment #1
info@zrix.com commentedPlease call the following function in your template.php file. Under theme, write the name of your theme:
Comment #2
info@zrix.com commentedComment #3
jweedman commentedI've been looking at looking for someone to help me take care of this issue. Problem is... I can't get your php code to work.
I added the code to my template.php, under my theme (tief), and renamed the function to "tief_aggregator_summary_block_item($item, $feed = 0)", but it's still not working.
If it matters, I'm not printing out the summary block - I'm printing out a category block. The category block contains items from two separate rss feeds. Does this php code need some customization if you're printing out a category block and not a summary block? Thanks...
Comment #4
jweedman commentedNevermind!
Here's what I did. Instead of:
function theme_aggregator_summary_block_item($item, $feed = 0) { ...I used:
function theme_aggregator_block_item($item, $feed = 0) {...Then be sure to clear your site's main cache! It will not appear to be working if you don't clear your cache. You can do that by putting the following php code in any page, and navigating to that page in your browser to run the script:
NOTE: The only consequence in removing "summary" from the function name, is that now I suppose any block that Aggregator outputs will now contain the entire description, rather than the default of only printing out the title. For what I'm doing - not a big deal. If that would be a problem for you (ie - you're using Aggregator to print out other blocks that you just want the title printed), than you might be careful with what you put into template.php. "cmswebsiteservices" seems intelligent enough to answer any further questions you may have on that :)
Thanks...