| 1 |
FEED Module
|
| 2 |
Developed by greenman
|
| 3 |
Drupal: The Greenman
|
| 4 |
Greenman@the-organization.com
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
The objective of this module is to create a system for themeing feeds. This involves creating
|
| 9 |
some themeable funcitons for actually outputting feeds and then using xslt for themeing the feeds themselves.
|
| 10 |
|
| 11 |
We provide a basic XSL theme, based on the BBC theme that will render your RSS feeds in a pretty way.
|
| 12 |
This stylesheet also uses a little bit of javascript to render HTML nodes that have been escaped.
|
| 13 |
|
| 14 |
|
| 15 |
STYLING YOUR FEEDS
|
| 16 |
The simplest way to change your feeds is to just copy feed.css to your theme directory and override the styles.
|
| 17 |
|
| 18 |
To get a little deeper into the styling, you can create a template overrride and modify the XSL. There are
|
| 19 |
some issues with making your own XSL stylesheet (see the notes inside the stylesheet), so you may need to
|
| 20 |
do some experimenting.
|
| 21 |
|
| 22 |
VIEWS RSS
|
| 23 |
We replace the default feed handler for node and taxonomy terms, and provide a function
|
| 24 |
that can be used to overrride the feed function for the views_rss module. You will need to
|
| 25 |
create a function in your own template.php file to be make this work.
|
| 26 |
|
| 27 |
It should look something like this :
|
| 28 |
|
| 29 |
function phptemplate_views_rss_feed($view, $nodes){
|
| 30 |
feed_views_rss_feed($view, $nodes);
|
| 31 |
}
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|