Add the body text to your rss feed

Explains how to edit your rss_template to include the body of each rss feed item. (ie, the body of the news item in addition to the title/description).

This is very simple, I first got the start off from http://tomster.org/blog/archive/2004/08/17/full-rss-feeds-for-plone , but that was for an earlier version of plone.

First, go to your Zope Management (under "site setup"), and goto portal_skins/plone_templates. There you should see rss_template. This is the file that generates the xml for your rss feed for every item that you enable syndication for.

Next, go down to the "Item" section and find the description tag. After </description> add this line:

  <content:encoded 
       xmlns:content="http://purl.org/rss/1.0/modules/content/" 
       tal:content="structure python: obj_item.getText()">blah</content:encoded>

That's it! Now your body will be after the <content><encoded_p> tags in your xml rss feed! Apply this info to your rss parser/aggregator and you're good to go!

error

Posted by ocobat at Jul 04, 2007 10:06 AM
I am very interested in your code as I want to give informations of one site in an other one without the see of the all site, only some informations.
But as I try to follow your howdo, I get this error :
Type de l'erreur
NameError
Valeur de l'erreur
name 'obj_item' is not defined

Do you know why ?
Thanks !
PS : I use Plone 2.5.3.

I wrote up how to do it with Plone 3

Posted by Manuel Amador (Rudd-O) at Dec 12, 2008 10:49 PM
In case you are interested, <a href="http://rudd-o.com/en/linux-[…]-feeds-in-plone">it is available on my Web site</a>.