exemple avec tag
{% for tag in fiche.bf_tags|split(',') %}
<div class="trombi-content"> {{tag}} </div>
{% endfor %}
exemple avec checkbox
Pour formater de manière personnalisée les valeurs des checkbox, comme dans l'exemple ci-dessous dans des étiquettes
{% set fieldOptions = (form.prepared|filter(f => f.propertyname == 'checkboxListeViolence')|first).options %}
{% for element in fiche.checkboxListeViolence|split(',')|filter(o => o is not empty) %}
<span class=" label label-primary"> {{fieldOptions[element]|raw}} </span>
{% endfor %}