Feeding the RSS

So I finally got around to enable RSS-feeding of my plone site. Currently this is only limited to the blog … but that’s just a matter of configuration.

In retrospective this wasn’t so hard to do, so I wonder why I didn’t do this before 🙂

OK, so how is this done? First of all you need to enable portal_syndication in the ZMI, and make the portal-action for syndication visible as well. Next you need to enable syndications explicitly for a certain object (folder).

Last you might want to edit the rss-template from the skins-folder (portal_skins/plone_templates/rss_template) to include the content body as well as just the description. To do this you have to add:

<content:encoded
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<span
tal:replace="structure python:
'\074![CDATA['+obj_item.getBody()+']]\076'">
Content
</span>
</content:encoded>

just below the description element.

Leave a Comment.