list-collections
The list-collections
template renders the collection list page, which lists all the store's collections. This page is located at the /collections
URL of the store.
Refer to the list-collections template and its main section in Dawn for an example implementation.

Anchor to LocationLocation
The list-collections
template is located in the templates
directory of the theme:
Anchor to ContentContent
You can include the following in your list-collections template or a section inside of the template:
Anchor to The collections objectThe collections object
You can access the Liquid collections
object to display the store's collections.
Anchor to UsageUsage
When working with the list-collections
template, you should familiarize yourself with the following:
If you're using a JSON template, then any HTML or Liquid code needs to be included in a section that's referenced by the template.
Anchor to Change the order of collectionsChange the order of collections
Typically, this template includes the following loop through the collections to output the display, which outputs the collections in alphabetical order:
Example
If you want to change the order, then you can build a menu to host the collections in your desired order, and loop through the menu items. If you use this method, then you should build a setting to allow merchants to select the menu that's used. You can access the menu through the Liquid linklist
object, filter the menu items for collections based on link.type
, and access the collection information through link.object
.
For example:
Anchor to Collection image fallbackCollection image fallback
You should have a fallback for the case that a collection doesn't have a collection image. For example, you might use the image of the first product within the collection: