The Link object cannot be invoked on its own. It must be invoked inside a Linklist.

The Link object has the following attributes:


Object Fields

FieldData TypeDescription
link.titleStringReturns the title of the link.
link.typeStringReturns the type of the link
Possible values: page, category, external
link.handleStringReturns the path of the link.
link.urlStringReturns the URL of the link.
link.targetStringOpen link in new tab or current tab
link.childrenArrayReturns the child links if any.

Code Example

<ul class="List">
    {% for link in linklists.footer1.links %}
    <li class="List-item">
        <a href="{{ link.url }}" target="{{ link.target }}">{{ link.title }}</a>
    </li>
    {% endfor %}
</ul>