Handling Content List Items =========================== Listing Content List Items -------------------------- .. note:: Content List can store many different content types (articles, events, packages). Content List ```````````` Usage: .. code-block:: twig Parameters: .. code-block:: twig {% gimme contentList with { contentListId: 1 } %} - select list by it's id. .. code-block:: twig {% gimme contentList with { contentListName: "List Name" } %} - select list by it's name. Content List Items `````````````````` Usage: .. code-block:: twig or .. code-block:: twig {% gimme contentList with { contentListName: "List1"} %} {% cache 'top-articles' {gen: contentList} %} {% endcache %} {% endgimme %} .. note:: Passing previously fetched contentList (for cache key generation needs) is good for performance. Parameters: .. code-block:: twig {% gimmelist item from contentListItems with { contentListId: 1 } %} - select list by it's Id. .. code-block:: twig {% gimmelist item from contentListItems with { contentListId: 1, sticky: true } %} - filter by sticky value. .. code-block:: twig {% gimmelist item from contentListItems with { contentListId: 1, sticky: true } without {content: [1]} %} - exclude article with id 1 (in case of articles as items).