views-view-row-rss.html.twig

Same filename in this branch
  1. 8.9.x core/themes/seven/templates/classy/views/views-view-row-rss.html.twig
  2. 8.9.x core/themes/claro/templates/classy/views/views-view-row-rss.html.twig
  3. 8.9.x core/themes/bartik/templates/classy/views/views-view-row-rss.html.twig
  4. 8.9.x core/themes/stable/templates/views/views-view-row-rss.html.twig
  5. 8.9.x core/themes/classy/templates/views/views-view-row-rss.html.twig
  6. 8.9.x core/modules/views/templates/views-view-row-rss.html.twig
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-row-rss.html.twig
  2. 9 core/themes/stable9/templates/views/views-view-row-rss.html.twig
  3. 9 core/themes/seven/templates/classy/views/views-view-row-rss.html.twig
  4. 9 core/themes/claro/templates/classy/views/views-view-row-rss.html.twig
  5. 9 core/themes/bartik/templates/classy/views/views-view-row-rss.html.twig
  6. 9 core/themes/stable/templates/views/views-view-row-rss.html.twig
  7. 9 core/themes/classy/templates/views/views-view-row-rss.html.twig
  8. 9 core/modules/views/templates/views-view-row-rss.html.twig
  9. 10 core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-row-rss.html.twig
  10. 10 core/themes/stable9/templates/views/views-view-row-rss.html.twig
  11. 10 core/themes/claro/templates/classy/views/views-view-row-rss.html.twig
  12. 10 core/modules/views/templates/views-view-row-rss.html.twig
  13. 11.x core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-row-rss.html.twig
  14. 11.x core/themes/stable9/templates/views/views-view-row-rss.html.twig
  15. 11.x core/themes/claro/templates/classy/views/views-view-row-rss.html.twig
  16. 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/profiles/demo_umami/themes/umami/templates/classy/views/views-view-row-rss.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display an item in a views RSS feed.
  5. *
  6. * Available variables:
  7. * - title: RSS item title.
  8. * - link: RSS item link.
  9. * - description: RSS body text.
  10. * - item_elements: RSS item elements to be rendered as XML (pubDate, creator,
  11. * guid).
  12. *
  13. * @see template_preprocess_views_view_row_rss()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <item>
  19. <title>{{ title }}</title>
  20. <link>{{ link }}</link>
  21. <description>{{ description }}</description>
  22. {% for item in item_elements -%}
  23. <{{ item.key }}{{ item.attributes -}}
  24. {% if item.value -%}
  25. >{{ item.value }}</{{ item.key }}>
  26. {% else -%}
  27. {{ ' />' }}
  28. {% endif %}
  29. {%- endfor %}
  30. </item>

Related topics


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.