Skip to content

getFooterGroups(int items_per_page)

The getFooterGroups method is used to get the FooterGroupsList object that represents a list of ordered groups of footer links.

Input parameters

items_per_page

int Number of items in a page of internal paginator. Parameter is optional. Default value is 10.

Returned value

The FooterGroupsList object.

Example

source
{% set footerGroups = ObjectApi.getFooterGroups() %}
{% for footerGroup in footerGroups %}
    <h1>{{ footerGroup.name }} - {{ footerGroup.order }} </h1>
    {% for footerLink in footerGroup.links %}
        <a href="{{ footerLink.url }}" title="{{ footerLink.title }}">
            {{ footerLink.title }}
        </a>
    {% endfor %}
{% endfor %}
output
<h1>Company - 1</h1>
<a href="/i/About-us/1" title="About us">
    About us
</a>
<a href="/en_US/contact" title="Contact form">
    Contact Form
</a>
<h1>Payments and delivery - 2</h1>
<a href="/i/Payment-information/2" title="Payment information">
    Payment information
</a>
<a href="/i/Shipping-methods/3" title="Shipping methods">
    Shipping methods
</a>