Hi, ich habe bei uns im Backend folgendes Twig um ein paar Custom Daten zu rendern:
PHP-Code:
<div class="tl_listing_container list_view">
<table class="tl_listing showColumns">
<tbody>
<tr>
{% for index, item in headArray %}
<td><strong>{{ item }}</strong></td>
{% endfor %}
</tr>
{% for index, entry in dataArray %}
<tr class="hover-row">
<td class="tl_file_list">{{ index + 1}}</td>
{% for columnIndex, item in headArray %}
<td class="tl_file_list">
{% if columnIndex == 3 %}
<textarea
rows="3"
cols="40"
>{{ entry[columnIndex] }}</textarea>
{% else %}
{{ entry[columnIndex] }}
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
Ich würde gerne noch einen Button einfügen und eine Funktion drauf legen. Wie würdet ihr das lösen?