views-view-rss.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/templates/views/views-view-rss.html.twig
- 9 core/themes/stable/templates/views/views-view-rss.html.twig
- 9 core/themes/classy/templates/views/views-view-rss.html.twig
- 9 core/modules/views/templates/views-view-rss.html.twig
- 8.9.x core/themes/stable/templates/views/views-view-rss.html.twig
- 8.9.x core/themes/classy/templates/views/views-view-rss.html.twig
- 8.9.x core/modules/views/templates/views-view-rss.html.twig
- 10 core/themes/stable9/templates/views/views-view-rss.html.twig
- 10 core/modules/views/templates/views-view-rss.html.twig
Theme override for feed displays that use the RSS style.
Available variables:
- link: The link to the feed (the view path).
- namespaces: The XML namespaces (added automatically).
- title: The title of the feed (as set in the view).
- description: The feed description (from feed settings).
- langcode: The language encoding.
- channel_elements: The formatted channel elements.
- items: The feed items themselves.
See also
template_preprocess_views_view_rss()
File
-
core/
themes/ stable9/ templates/ views/ views-view-rss.html.twig
View source
- {#
- /**
- * @file
- * Theme override for feed displays that use the RSS style.
- *
- * Available variables:
- * - link: The link to the feed (the view path).
- * - namespaces: The XML namespaces (added automatically).
- * - title: The title of the feed (as set in the view).
- * - description: The feed description (from feed settings).
- * - langcode: The language encoding.
- * - channel_elements: The formatted channel elements.
- * - items: The feed items themselves.
- *
- * @see template_preprocess_views_view_rss()
- */
- #}
- <?xml version="1.0" encoding="utf-8"?>
- <rss version="2.0" xml:base="{{ link }}"{{ namespaces }}>
- <channel>
- <title>{{ title }}</title>
- <link>{{ link }}</link>
- <description>{{ description }}</description>
- <language>{{ langcode }}</language>
- {{ channel_elements }}
- {{ items }}
- </channel>
- </rss>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.