# collection

> The collection template of a Shoplazza Theme renders a collection page listing all products in that collection. See the file location and the objects to include.

The `collection` template renders the collection page, which lists all products within a collection.

## Location

The `collection` template is located in the `templates` directory of the theme:

```text title="Directory"
└── theme
    ├── layout
    ├── templates
    |   ...
    |   ├── collection.liquid
    |   ...
    ...
```

## Content

You should include the [collection object](#the-collection-object) in your section inside the template.

### The collection object

You can access the Liquid [collection object](/docs/theme/references/liquid/objects/collection) to display the collection details.

## Usage

When working with the `collection` template, you should familiarize yourself with the following:

* [Filtering collections](./collection#filter-collections)
* [Paginating products](./collection#paginate-products)

### Filter collections

You can use [storefront filtering](/docs/theme/theme-features/site-navigation-and-search/filtering/) to filter collections into smaller subsets of products.

### Paginate products

Products can be accessed through the `products` attribute of the [collection object](/docs/theme/references/liquid/objects/collection),  you should [paginate](/docs/theme/references/liquid/objects/paginate) a collection’s products to ensure that they’re all accessible:

```lua title="Example"
{% paginate collection.products by 20 %}
  {% for product in collection.products %}
    <!-- product info -->
  {% endfor %}
{% endpaginate %}
```
