Drupal 8 module for providing <itunes:*> tags via Views RSS.
This module provides a new Views formatter for rendering Views RSS feeds as iTunes podcast feeds. It essentially allows you to map fields on Drupal entities to iTunes elements. E.g., you may map a node's field_episode_recording
file field to the <enclosure>
XML element, or a node's field_explicit
boolean field to the <itunes:explicit>
XML element.
- Create a new view with a 'feed' display.
- Add the entity fields that will be rendered as iTunes elements. E.g., add the file field that should be rendered as the
<enclosure>
. - Select "iTunes RSS Feed" as the display format.
- Set settings under settings for "iTunes RSS Feed".
- Select "iTunes Fields" under format's show setting.
- Set the settings under settings for "iTunes Fields".
You may customize the output using Drupal's core theming system. The following twig templates may be overridden:
- views-view-itunes-rss.html.twig
- views-view-row-rss.html.twig -> Does not work with 8.8.x because of Views Bug. https://drupal.stackexchange.com/questions/249854/i-dont-see-views-theme-suggestions/257245#257245
The following preprocessor may be overridden: template_preprocess_views_view_itunes_rss()
.