Skip to content

Footer Groups

Availability: All contexts


Use footer_groups to render all groups of footer links

Configuration parameters

none

Module source code

{% from "@macros/footer_group.twig" import footer_group %}
{% set footerGroups = ObjectApi.getFooterGroups() %}

{% set footerLinksLabelId = "footer-nav-heading-#{moduleInstance}" %}

<footer-groups lazy role="navigation" aria-labelledby="{{ footerLinksLabelId }}">
    <h-accordion class="accordion footer-groups" disabled>
        {% if ObjectApi.getFeatureFlag("dev_seo_redundant_headings").isEnabled %}
            <div role="heading" aria-level="2" class="sr-only" id="{{ footerLinksLabelId }}">{{ translate('Footer menu') }}</div>
        {% else %}
            <h2 class="sr-only" id="{{ footerLinksLabelId }}">{{ translate('Footer menu') }}</h2>
        {% endif %}

        {% for group in footerGroups %}
            {{ footer_group(group) }}
        {% endfor %}
    </h-accordion>
</footer-groups>

Webcomponents reference

Macros reference

Used Object Api methods

Used styles

Module configuration schema

[
    {
        "state": "unfolded",
        "label": "General settings",
        "elements": [
            {
                "type": "infobox",
                "name": "infobox",
                "options": {
                    "type": "blank",
                    "message": "#### Related settings in the admin panel%s- adding, removing and changing the position of [links in the footer](%s)",
                    "placeholderValues": [
                        "\n",
                        "\/admin\/configSkins\/links"
                    ]
                }
            }
        ]
    }
]