link
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
Field | Data Type | Description |
---|---|---|
link.title | String | Returns the title of the link. |
link.type | String | Returns the type of the link Possible values: page , category , external |
link.handle | String | Returns the path of the link. |
link.url | String | Returns the URL of the link. |
link.target | String | Open link in new tab or current tab |
link.children | Array | Returns 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>
Updated about 1 year ago