【转载】Full RSS-feeds for Plone
原文地址:http://tomster.org/blog/archive/2004/08/17/full-rss-feeds-for-plone
Filed Under:
egg and bacon; egg sausage and bacon; egg and plone; egg bacon and plone; egg bacon sausage and plone; plone bacon sausage and plone; plone egg plone plone bacon and plone; plone sausage plone plone bacon plone tomato and plone
While tweaking the FuxData website I came across the problem, that Plone’s default RSS-template only includes the description of its items but not the body text. Firmly believing that only ‘fullsize’ RSS-feeds are ‘real’ feeds I set out to add the body to Plone.
In the end there ain’t much to be done. Simply add the following line after the description
in the rssBody
template (located in portal_skins/plone_templates
):
<content:encoded><span tal:replace="structure python: '\074![CDATA['+item.getBody()+']]\076'">Bla</span></content:encoded>
Voila! And as a practical side-effect, you can now subscribe to our FuxData blog feed ;-)
抱歉,暂停评论。