views-view-row-rss.html.twig
Same filename in this branch
- 9 core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-row-rss.html.twig
- 9 core/themes/stable9/templates/views/views-view-row-rss.html.twig
- 9 core/themes/claro/templates/classy/views/views-view-row-rss.html.twig
- 9 core/themes/bartik/templates/classy/views/views-view-row-rss.html.twig
- 9 core/themes/stable/templates/views/views-view-row-rss.html.twig
- 9 core/themes/classy/templates/views/views-view-row-rss.html.twig
- 9 core/modules/views/templates/views-view-row-rss.html.twig
Same filename in other branches
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-row-rss.html.twig
- 8.9.x core/themes/seven/templates/classy/views/views-view-row-rss.html.twig
- 8.9.x core/themes/claro/templates/classy/views/views-view-row-rss.html.twig
- 8.9.x core/themes/bartik/templates/classy/views/views-view-row-rss.html.twig
- 8.9.x core/themes/stable/templates/views/views-view-row-rss.html.twig
- 8.9.x core/themes/classy/templates/views/views-view-row-rss.html.twig
- 8.9.x core/modules/views/templates/views-view-row-rss.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-row-rss.html.twig
- 10 core/themes/stable9/templates/views/views-view-row-rss.html.twig
- 10 core/themes/claro/templates/classy/views/views-view-row-rss.html.twig
- 10 core/modules/views/templates/views-view-row-rss.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-row-rss.html.twig
- 11.x core/themes/stable9/templates/views/views-view-row-rss.html.twig
- 11.x core/themes/claro/templates/classy/views/views-view-row-rss.html.twig
- 11.x core/modules/views/templates/views-view-row-rss.html.twig
Theme override to display an item in a views RSS feed.
Available variables:
- title: RSS item title.
- link: RSS item link.
- description: RSS body text.
- item_elements: RSS item elements to be rendered as XML (pubDate, creator, guid).
See also
template_preprocess_views_view_row_rss()
File
-
core/
themes/ seven/ templates/ classy/ views/ views-view-row-rss.html.twig
View source
- {#
- /**
- * @file
- * Theme override to display an item in a views RSS feed.
- *
- * Available variables:
- * - title: RSS item title.
- * - link: RSS item link.
- * - description: RSS body text.
- * - item_elements: RSS item elements to be rendered as XML (pubDate, creator,
- * guid).
- *
- * @see template_preprocess_views_view_row_rss()
- *
- * @ingroup themeable
- */
- #}
- <item>
- <title>{{ title }}</title>
- <link>{{ link }}</link>
- <description>{{ description }}</description>
- {% for item in item_elements -%}
- <{{ item.key }}{{ item.attributes -}}
- {% if item.value -%}
- >{{ item.value }}</{{ item.key }}>
- {% else -%}
- {{ ' />' }}
- {% endif %}
- {%- endfor %}
- </item>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.