Because the built-in RSS connector/module in Joomla, up to the latest stable version, includes images within the feed description, which prevents proper adaptation to the target framework, and to maintain compatibility with the RSS standard that uses the "enclosure" tag (available as a data type and class in Joomla's core but not used), I would like to recommend improving this important functionality. In my case, with each Joomla update, I am forced to fix the code every time.
I have attached a ZIP file of the Joomla code modifications, which are operational and work correctly in version J.5.4.2 and I believe should also work correctly in version 6.
Thank you for your attention to this matter.
| Labels |
Removed:
?
|
||
| Labels |
Added:
No Code Attached Yet
|
||
Link to the ZIP file with the code for my proposed solution
https://cdn.marbella.es/RSS-enclosure-FIX.zip
Please submit this as a pull request. You can find out how to do this https://manual.joomla.org/docs/get-started/git/github-joomla-cms/
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-02-02 14:22:27 |
| Closed_By | ⇒ | richard67 |
Sorry, this is my first time requesting this. That's correct, it refers to Pull request 46813.
| Status | Closed | ⇒ | New |
| Closed_Date | 2026-02-02 14:22:27 | ⇒ | |
| Closed_By | richard67 | ⇒ |
I don't think this is a change we should make in Joomla core. The current RSS output is valid, and moving images from the <description> element to <enclosure> would change the existing feed format for every Joomla site. This could break or change the behaviour of existing RSS readers and other consumers that rely on the image being part of the description.
While <enclosure> is a valid RSS mechanism and may be useful as an additional option, it should not replace the existing behaviour without a very strong backwards-compatibility justification. The fact that a particular RSS consumer would prefer an enclosure does not make the current Joomla output incorrect.
If the underlying goal is to transfer or import content, including images, from one Joomla site or service to another, then RSS is probably not the appropriate mechanism for that either. Joomla's Web Services API exists specifically for providing structured access to site content and associated data, and would be a much more appropriate and reliable solution for that use case. RSS is primarily a syndication format, not a general-purpose content transfer API.
I leave it to the maintainers to make a decision but it really shouldnt be just left here
Modified files involved in the improvement for enclosures and categories of Joomla's native RSS feed
RSS Connector Tags VIEWS (add enclosure class):
C:\inetpub\wwwroot\portal\components\com_tags\src\View\Tags\FeedView.php
C:\inetpub\wwwroot\portal\components\com_tags\src\View\Tag\FeedView.php
RSS connector for VIEW category articles (Only to remove the image from the description):
C:\inetpub\wwwroot\portal\components\com_content\src\View\Category\FeedView.php
C:\inetpub\wwwroot\portal\components\com_content\src\View\Featured\FeedView.php
RSS connector for MVC category articles (Add enclosure class to category view):
C:\inetpub\wwwroot\portal\libraries\src\MVC\View\CategoryFeedView.php
Include parameter for date type
C:\inetpub\wwwroot\ayuntamiento-dev\administrator\components\com_content\config.xml
I tried to upload a zip file containing the Joomla files involved, but uploading ZIP files is not allowed. Please let me know how I can submit my proposal.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46745.