Setting up Media feed elements

Last updated on
7 July 2021

This is documentation for Drupal 7, which is no longer supported. Learn more and find resources for Drupal 7 sites

Setting up feed elements

After enabling Views RSS: Media (MRSS) Elements module, start with setting up core <channel> elements and core <item> elements provided by Views RSS: Core Elements submodule of Views RSS module, then proceed with iTunes-specific feed elements described below.

Setting up Media <item> elements

Values for all Media <item> elements are configured from within Item elements : Media group in view's Format settings.

<media:content>

Use any image, file/media or video field.

Select RSS <media:content> element as field formatter.

Check Group multiple field values in one <media:group> element if you plan to output multiple <media:content> elements within single <item> element and want to wrap them in <media:group> element.

Select remaining options as required.

Also:

  • If you have getid3 module enabled, it will be used to read extra file attributes to be added to <media:content> feed element (for example: bitrate, samplingrate, channels and duration for audio files; bitrate, framerate, duration, width and height for video files).
  • If you are using Media module and your files are fieldable, adding the following fields:
    • field_title
    • field_description

    will cause their values to be printed as sub-elements of <media:content> element (<media:title> and <media:description> respectively).

More information: Media RSS Specification: media:content

<media:title>

Use any text field.

More information: Media RSS Specification: media:title

<media:description>

Use any text field.

More information: Media RSS Specification: media:description

<media:keywords>

Select either text field or Taxonomy field (for example All taxonomy terms) or Term reference field.

In field configuration section:

  • enable Strip HTML tags option if necessary

In case of Taxonomy fields:

  • disable Link this field to its term page option
  • select Simple separator in Display type and use , as a Simple separator

In case of Term reference fields:

  • select Plain text as Formatter,
  • in Multiple field settings check Display all values in the same row and use , as a Simple separator

More information: Media RSS Specification: media:keywords

<media:thumbnail>

Use any image, file/media or video field.

Select RSS <media:thumbnail> element as field formatter.

Also:

  • If you are using Media module and your files are fieldable, adding the field field_time will cause its value to be added as time attribute of <media:thumbnail> element.

More information: Media RSS Specification: media:thumbnails

<media:category>

Use any Term reference field (do not use Taxonomy "fields" provided by Views).

Select RSS <media:category> element as field formatter.

In Multiple field settings check Display all values in the same row.

Also:

  • If your source taxonomy vocabulary has field_scheme and/or field_label defined, their values will be automatically added as attributes to each <media:category> element.

More information: Media RSS Specification: media:category

Help improve this page

Page status: No known problems

You can: