By rewted on
When you create aggregate a feed using the core Feed aggregator, it produces a block you can enable. This block is very basic and only shows the Title from a feed in a list.
I know you can style the Feed aggregator node by editing aggregator-item.tpl.php, but how do you style the block?
Comments
Three options
1. Check if the block has a specific class/id and write specific CSS rules.
2. Use Block Theme module to create specific block templates that can be applied afterwards in block settings.
3. Copy your theme's block.tpl.php as block-[module].tpl.php and customize it. In your case it should be block-aggregator.tpl.php
I like the idea of a
I like the idea of a template. I've tried using what was found in the aggregator module, but the fields don't render. Any ideas?
From my trial and error....
I believe that the [somename].tpl.php files that you can copy from the aggregator module folder to your theme's folder are used to style the aggregator PAGE, not blocks. i.e.: http://www.example.com/aggregator/sources/1
I wanted to make three code changes to the rendering of the aggregator blocks. 1) remove the "more" link; 2) remove the "blog this" link; 3) add target="_blank" to each link.
For #1, add this to template.php:
http://drupal.org/node/228051#comment-1673392
For #2 & #3, add this to template.php:
Everything else, was cosmetic, so that was handled with CSS.
Any other suggestions?
Any other suggestions?
help
how theming individual item in rss block???
Hey tytest you can try views
try with views. i did that..
By
Ram
block-aggregator.tpl.php
I found that you need to duplicate the block.tpl.php file and make it block-aggregator.tpl.php - then you can customize within that. There's a tutorial on Lynda.com .
But I can't figure out how to style the list - or add the date to each entry. I don't understand how it's calling the list style - I was expecting to see
in one of the files - but it's not there.
Does anyone know how this works?
Oh - this is what is meant
Oh - this is what is meant above - http://drupal.org/project/views it's a module.
For items in the block
see http://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.modul...