Skip to content

FooterLink

The FooterLink object represents a single link in the footer of the storefront.

classDiagram
  direction LR
  FooterLink --> footerLink
  FooterLink --> Url
  class FooterLink{
    int id
    string title
    Url url
    int order
    bool isPopup
    footerLink group
  }
  class footerLink{
  }
  class Url{
  }

Properties

Attribute name Type Description
id int The unique identifier of the link.
title string The title of the link.
url Url The Url object that represents an external or internal url. If the link is associated with a page within the storefront, the direct render an Url object return the relative URL of the page. In other cases, it will be always full external URL.
order int The order of the link in its group.
isPopup bool Returns true if the link should be opened in a new window.
group FooterGroup Reference to the FooterGroup object that represents the group of the link.

Examples

id property

{{ footerLink.id }}
1

title property

{{ footerLink.title }}
example title

url property

{{ footerLink.url }}
/en_US/contact

order property

{{ footerLink.order }}
4

isPopup property

<a href="{{ footerLink.url }}" {% if footerLink.isPopup %}target="_blank" rel="noopener"{% endif %}>
    {{ footerLink.title }}
</a>
<a href="https://example.com" target="_blank" rel="noopener>
    Example Website
</a>

group property

{{ footerLink.group.name }}
Example Group