Twig-Template Anpassungen
Download-Element
Section titled “Download-Element”- Svg-Icon
- Dateityp
- Dateigröße
Der Dateityp ist nicht unbedingt nötig, da die Dateierweiterung im Dateinamen enthalten ist. Der Typ kann nämlich auch mal sehr lang werden …

{% use "@Contao/component/_download.html.twig" %}
{# Adjust how any blocks of parent or used component templates are rendered. Try typing "block" or "use" to get autocompletion for available options.#}
{%- block download_link_inner %} {{ source('svgicons/download.html5') }} {{ parent() }} ({{ download.file.mimeType|split('/')|last }} {{ download.file.fileSize|format_bytes }}){% endblock -%}