Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Changelog

12.7-dev0 - (unreleased)
---------------------------
* Fix: Override Plone search RSS template to use feed item title property
[dobri1408]

12.6 - (2026-05-20)
---------------------------
Expand Down
4 changes: 4 additions & 0 deletions eea/volto/policy/browser/search-rss.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
32c32
< <title tal:content="python:item.Title()">Title</title>
---
> <title tal:content="item/title">Title</title>
5 changes: 5 additions & 0 deletions eea/volto/policy/browser/search-rss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Patch CMFPlone to fix:
* https://github.com/plone/Products.CMFPlone/pull/4330

Copied from Products.CMFPlone `5.1.4`

55 changes: 55 additions & 0 deletions eea/volto/policy/browser/search-rss.pt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
xmlns="http://purl.org/rss/1.0/"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
xmlns:tal="http://xml.zope.org/namespaces/tal"
tal:define="syn context/@@syndication-util;">

<tal:synd tal:define="feed python:view.feed();
objects python: [i for i in feed.items];">
<channel rdf:about="" tal:attributes="rdf:about request/URL">
<title tal:content="python:context.Title() or context.getId()">The title</title>
<link tal:content="python:context.portal_url">http://url.to.portal</link>

<image tal:attributes="rdf:resource feed/logo" />

<items>
<rdf:Seq>
<tal:block repeat="obj_item python: objects">
<rdf:li rdf:resource=""
tal:attributes="rdf:resource obj_item/link" />
</tal:block>
</rdf:Seq>
</items>

</channel>

<tal:block repeat="item python: objects">
<item rdf:about="" tal:attributes="rdf:about item/link">
<title tal:content="item/title">Title</title>
<link tal:content="item/link">Identifier</link>
<description tal:content="item/description">Description</description>
<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>
<tal:about tal:condition="syn/show_author_info">
<dc:publisher tal:content="item/publisher" />
<dc:creator tal:content="item/author_name">Creator</dc:creator>
</tal:about>
<dc:rights tal:content="item/rights">Rights</dc:rights>
<tal:block tal:repeat="cat item/categories">
<dc:subject tal:content="cat">Item</dc:subject>
</tal:block>
<dc:date tal:content="item/published|item/modified">Published or last modified date if no published date</dc:date>
<dc:type tal:content="item/context/Type">Type</dc:type>
</item>
</tal:block>

</tal:synd>
</rdf:RDF>
8 changes: 8 additions & 0 deletions eea/volto/policy/overrides.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
name="image_field"
/>

<browser:page
name="search_rss"
for="*"
class="Products.CMFPlone.browser.syndication.views.SearchFeedView"
template="browser/search-rss.pt"
permission="zope2.View"
/>

<!-- Plone 6: Override ImageFieldScales to add inheritance support -->
<configure zcml:condition="installed Products.CMFPlone.image_scales">
<adapter factory=".image_scales.adapters.EEAImageFieldScales" />
Expand Down