{% load dsfr_tags wagtailcore_tags %}
{% for subblock in value %} {% if subblock.block_type == "title" %}

{{ subblock.value }}

{% endif %} {% endfor %}
{% for subblock in value %} {% if subblock.block_type == "accordion" %} {% with forloop.counter0|lower as str_counter %} {% with "accordion-"|add:subblock.id|add:"-"|add:str_counter as accordion_id %} {% dsfr_accordion id=accordion_id title=subblock.value.title content=subblock.value.content|richtext %} {% endwith %} {% endwith %} {% endif %} {% endfor %}