Personal tools
You are here: Home Documentation How-tos Add the body text to your rss feed
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Add the body text to your rss feed

Warning: This item is marked as outdated.

This How-to applies to: Plone 2.1.x
This How-to is intended for: Integrators, Customizers

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!

by Kelly last modified August 31, 2007 - 21:18
Contributors: vinsci, miyashiro
All content is copyright Plone Foundation and the individual contributors.

error

Posted by ocobat at July 4, 2007 - 10:06
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.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by