Handling Content List Items

Listing Content List Items

Note

Content List can store many different content types (articles, events, packages).

Content List Items

Usage:

1
2
3
4
5
6
7
<ul>
{% gimmelist item from contentListItems with { contentListName: "List1" } %}
    <li>{{ item.content.title }}</li> <!-- Article title -->
    <li>{{ item.position }}</li> <!-- Item position in list -->
    <li>{{ item.sticky ? "pinned" : "not pinned" }}</li> <!-- Checks if item is sticky (positioned on top of list) -->
{% endgimmelist %}
</ul>

Parameters:

1
{% gimmelist item from contentListItems with { contentListId: 1 } %} - select list by it's Id.
1
{% gimmelist item from contentListItems with { contentListId: 1, sticky: true } %} - filter by sticky value.