Use a Collection list to add a Collection’s dynamic content to your site.
Collection lists are 1 of 2 ways to add and design dynamic content from a CMS Collection or an Ecommerce Collection (the other way is by using a Collection page). You can add Collection lists to any type of page on your site.
Before jumping into Collection lists, feel free to learn more about the CMS and CMS Collections in our other lessons:
In this lesson, you’ll learn:
As long as you have one or more Collections with Collection items, you can add a Collection list to any static page or Collection page in your site. To add a Collection list:
You can also add a Collection list using Quick find: Command + E (on Mac) or Control + E (on Windows).
A Collection list is useless until it’s connected to a Collection. To connect the Collection list to a Collection:
Once you connect a Collection to your Collection list, the Collection list will display all the items in that Collection as empty blocks. You’ll be able to add elements to the Collection list and connect those elements to a Collection field. Then, those elements will auto-populate with the data from your Collection.
When you add an element to one of the empty Collection list blocks, that element will duplicate in each Collection list block. This is called “static” content — content that doesn't come from a Collection.
When you connect the element to a Collection field, it’ll automatically replace the element’s default content (e.g., the word “Heading” in the heading element) with the content from each Collection item. It becomes “dynamic” content because the content is sourced from the CMS Collection.
Static elements have blue outlines on the canvas, while dynamic elements — elements that have data coming from the CMS — have purple outlines.
You can connect a static element to a Collection field to dynamically update the content of that element. To connect an element to a Collection field:
When you add styling to any element in a Collection list (static or dynamic) the styling is applied across all the Collection items in that Collection list. For example, if you connect a heading to a Collection field and style the heading to have a green font color, all the headings in that Collection list will have the same green font color.
You can also apply Dynamic style settings to a Collection list by pulling colors and background images from color and image fields in your Collection items.
By default, a Collection list wrapper contains the Collection list and the Empty state. If pagination is enabled, it also contains the pagination wrapper. You can add multiple pagination wrappers by duplicating the wrapper.
The Collection list wrapper contains the Collection items of the Collection list. You cannot add other elements to the wrapper.
The Collection item contains the actual content that you add to the Collection list. Any element you add here will populate to all items in the list. These elements are static until you connect them to Collection fields or apply conditional visibility to them. These modifications will convert them to dynamic elements. Dynamic elements are indicated with a purple icon in the Navigator.
The empty state replaces the Collection list when there are no items to display for the list. By default, it has a gray background and contains a text block which says “No items found.” You can change the styling and replace or add more elements to create a custom empty state.
The pagination contains two link blocks: the previous button and the next button. Each of these can be styled and customized. Learn more about paginating Collection lists.
You can control the content that gets displayed in a Collection list and the Collection list’s layout in Collection list settings. To access Collection list settings:
Here, you can choose which Collection you want to connect to your Collection list. You’ll have to make sure none of the elements inside the Collection list are currently connected to a Collection before you choose a different Collection to connect to the Collection list.
This setting allows you to toggle between the items state and the empty state so you can edit both states of the Collection list.
Note that changing this setting doesn’t set the state of a Collection list on a live site. The actual state of a Collection list is determined by its items. The empty state only shows when there are no items in a Collection or when they are filtered out. Learn more about filtering Collection lists.
You can keep the Collection list stacked vertically or you can change the layout to columns, similar to the columns element. You can also apply grid to the Collection list to create a dynamic grid. In this case, make sure to leave the Collection list layout setting set to full width.
Adding a filter lets you show only the Collection items you want — the Collection items that match 1 or more filter criteria. Learn more about filtering Collection lists.
Sort order lets you sort Collection lists based on a specific field(s). Learn more about sorting Collection lists.
You can paginate Collection lists to display a specific number of items per page. Learn more about paginating Collection lists.
This option lets you define how many items to show in a Collection list and which item starts the Collection list. For example, you can have your list start at item 5 and show only 3 items. Then, your list will show items 5, 6, and 7. Learn more about limiting Collection items.
Need to know: There’s a max limit of 100 items per Collection list and 20 Collection lists per page unless pagination is enabled. Learn how to use pagination to display more than 100 items in a Collection list.