You are here

views-view-ical.html.twig in Views iCal 8

Default template for feed displays that use the iCal style. IMPORTANT: For iCal compliance this template contains Windows line endings

Available variables:

  • title
  • attributes: HTML attributes for the container.
  • rows: A list of rows for this list.
    • attributes: The row's HTML attributes.
    • content: The row's contents.

See also

template_preprocess_views_view_ical()

File

templates/views-view-ical.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default template for feed displays that use the iCal style.
  5. * IMPORTANT: For iCal compliance this template contains Windows line endings
  6. *
  7. * Available variables:
  8. * - title
  9. * - attributes: HTML attributes for the container.
  10. * - rows: A list of rows for this list.
  11. * - attributes: The row's HTML attributes.
  12. * - content: The row's contents.
  13. *
  14. * @see template_preprocess_views_view_ical()
  15. *
  16. * @ingroup themeable
  17. */
  18. #}BEGIN:VCALENDAR{{ "\r\n" }}VERSION:2.0{{ "\r\n" }}METHOD:PUBLISH{{ "\r\n" }}X-WR-CALNAME;VALUE=TEXT:{% if title %}{{ title }}{% endif %}{{ "\r\n" }}PRODID:-//Drupal iCal API//EN{{ "\r\n" }}{% for row in rows %}{{ row.content }}{% endfor %}END:VCALENDAR{{ "\r\n" }}{# skip line ending #}