Add support for enclosure field in Views RssFields row plugin so that posts can include media items

Created on 25 June 2015, about 9 years ago
Updated 24 June 2024, 2 days ago

Problem/Motivation

The RSS format has the <enclosure> tag for "attaching" media to an item. It is typically used for the main image of an article or the audio file of a podcast issue.

Views has an RSS Enclosure formatter but it looks like it cannot really be used. Only the fields selected in the RssFields plugin settings form are rendered.

Proposed resolution

Add an optional "Enclosure field" option to RssFields.

Remaining tasks

  • ✅ Write patch as proof of concept for the proposed resolution
  • ❌ Get Views maintainer approval of proposed resolution (see comment #70 Add support for enclosure field in Views RssFields row plugin so that posts can include media items Needs work ).
  • ❌ Create merge request satisfying the approved resolution
  • ❌ Community approval of merge request
  • ❌ Views maintainer approval of merge request
  • ❌ Write automated test coverage.
  • ❌ Merge the request into Drupal core
  • ❌ Celebrate the ability to properly include images in RSS feeds

User interface changes

Adds Image option in RSS fields list in Views.

API changes

Data model changes

Feature request
Status

Needs work

Version

11.0 🔥

Component
Views 

Last updated less than a minute ago

Created by

🇸🇪Sweden Arla

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024