Contao 5.x Elementtyp Tabelle erweitern
Halli hallo, ich bräuchte mal einen Schubser in die richtige Richtung.
Ich möchte das CE Table so erweitern, dass das Table Tag immer eine bestimmte klasse bekommt UND, dass noch ein DIV um das TABLE gewrapped wird.
Im Backend steht, dass content_element/table [ContaoCore]
genutzt wird.
Ich habe also ein neues Template erstellt und im Ordner templates liegt jetzt:
content_element
table.html.twig
da habe ich folgendes rein geschrieben:
PHP-Code:
{% extends "@Contao/content_element/table.html.twig" %}
{% block table %}
<div class="my-div-wrapper">
{{ parent() }}
</div>
{% endblock %}
{% block table_attributes %}
{{ parent() }} class="tolle neue klasse"
{% endblock %}
Das greift aber leider so garnicht.
Jemand ne Idee?