Plone syndication to show custom dexterity field on RSS, rss.xml

I need to show a dexterity (rich text) field on a RSS feed.
Maybe adding a line to the template (/Products/CMFPlone/browser/syndication/templates/rss.xml.pt) would do the job:

<content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"
 tal:condition="feed/settings/render_body"> 
<tal:opencdata tal:replace="structure python:'&lt;![CDATA['" />
          <tal:block tal:replace="structure item/render_content_core"/>
          <tal:closecdata tal:replace="structure python:']]&gt;'" />
      </content:encoded>

Any help would be appreciated

You can enable syndication with the @@syndication-controlpanel then on a folder or a collection you can enable RSS. See https://docs.plone.org/develop/plone/functionality/rss.html?highlight=rss#id2

1 Like