Sommaire

Documentation du tag

Returns a summary item. Takes a list as parameter, with the following structure:

items = [
    { "link": "item1", "label": "First item label"},
    { "link": "item2", "label": "Second item label", "children": [
        { "link": "item2-1", "label": "First nested item label"},
        { "link": "item2-2", "label": "Second nested item label"},
        ]},
    {...}
]

Also takes an optional "heading_tag" parameter, which can be "p" (default) or h2>h6, and an optional "summary_id" which will be generated if not set.

Tag name: dsfr_summary

Usage: {% dsfr_summary items heading_tag %}

Exemples

Exemple 1

[{'link': '#', 'label': 'Titre du premier élément'}, {'link': '#', 'label': 'Titre du second élément'}]

Exemple 2

[{'link': '#', 'label': 'Titre du premier élément'}, {'link': '#', 'label': 'Titre du second élément', 'children': [{'link': '#', 'label': 'Titre du premier élément imbriqué'}, {'link': '#', 'label': 'Titre du second élément imbriqué', 'children': [{'link': '#', 'label': 'Titre du premier élément imbriqué (niveau inférieur)'}, {'link': '#', 'label': 'Titre du second élément imbriqué (niveau inférieur)'}]}]}]