downloads: Lnk öffnet NICHT im neuen Fenster
Habe in CONTAO 5.3.44 eine PDF Liste, wo sich per Klick darauf ein neues Fenster öffnen soll:
https://entwicklung.car-portal-onlin...aktuell-3.html
Habe dazu das twig Template angepasst;
Code:
{% extends "@Contao/content_element/downloads.html.twig" %}
{#
** Add changes to the base template here. **
Hint: Try adjusting blocks and attributes instead of
overwriting the whole template. This way your version
can remain compatible with future changes to the base
template as well as adjustments made by extensions.
Currently available blocks:
"list_component", "list", "list_attributes",
"list_item_attributes", "list_item", "pagination",
"list_script", "pagination_script_show_element",
"pagination_script_activate_selector",
"picture_component", "image", "sources", "source",
"schema_org", "figure_component", "media",
"media_link", "caption", "caption_inner",
"download_component", "download_link",
"download_link_attributes", "download_link_inner",
"file_previews", "file_preview", "content",
"headline_component", "headline_attributes",
"headline_inner", "wrapper", "wrapper_tag",
"attributes", "inner", "metadata", "style",
"script"
Example:
{% block list_component %}
{{ parent() }}
My additional content for 'list_component'…
{% endblock %}
#}
{% block download_link_attributes %}
{{ download_link_attributes.set('target', '_blank') }}
{% endblock %}
Trotzdem funktioniert es nicht, was habe ich übersehen?
Vielen Dank für Hinweise