# Subcollections

Promote additional collections on your existing collection pages. Subcollections can help your customers find related collections or promoted collections at the top of the collection page.&#x20;

Example of subcollections, we are promoting the "Cardigans", "Cashmere", and "Cotton" collections when viewing the Sweaters collection page:

<figure><img src="/files/Gt0jczyVxxqomVdxjLSa" alt=""><figcaption></figcaption></figure>

Another example of using Subcollections can be, to help display additional brands. If a customer is viewing products by a certain brand, you can display product groups of that brand or competing brands.&#x20;

## Two options in Pipeline

Pipeline offers two methods for adding Subcollections to the Collection template: a fast method and a more flexible method that allows for greater customization.

## Basic method

The first method and basic method is to simply choose Collections from the Subcollections list in the Theme Editor (feature added in Pipeline 7):&#x20;

<div data-full-width="true"><figure><img src="/files/xgmV8QXxb3YbsRVXuYuQ" alt=""><figcaption></figcaption></figure></div>

Using this method will display the same chosen collections on all your collection pages. This might work for smaller stores or situations where you're only promoting the same collections on each of your Collection pages.&#x20;

## Full customization

Pipeline also supports using a dynamic data source for Subcollections. When you use a collection metafield, you can easily choose which collections are shown for each individual Collection page.&#x20;

This gives you full customization abilities including showing Subcollections only with certain Collection pages. The setup is fairly simple.

### Step 1

Let's being by creating a Collection metafield in the Shopify Admin.&#x20;

Choose Settings -> Custom data -> Collections

<figure><img src="/files/iacuj7mtIa1rg55Gd2hS" alt=""><figcaption></figcaption></figure>

> *Tip*: Be sure you choose **Collections** when creating this metafield

* Choose the **Add definition** button to start creating the Collection metafield.
* Add a Name, you can use any name you like for this metafield. We've used `sub-collection`
* After adding a name, you can optionally add a description
* Choose **Select type**, scroll down, and pick **Collection**:

<div data-full-width="true"><figure><img src="/files/a4f4uEcOOM5jD9wchzaa" alt=""><figcaption></figcaption></figure></div>

* After choosing Collection, for the type pick **List of collections** (important)

<div data-full-width="false"><figure><img src="/files/FnryiCgfzRSqmMinRqVj" alt=""><figcaption></figcaption></figure></div>

Press the **Save** button to complete

### Step 2

Now we can customize each of our collections with unique Subcollections. Here is a video walkthrough on how to complete our setup and choose individual collection lists:

{% embed url="<https://www.loom.com/share/841524755a084e648680e9297b176c26?sid=d8d07b57-ea60-467d-a18e-11afd40138c7>" fullWidth="true" %}

<details>

<summary>Steps covered in video</summary>

* Shopify Admin -> Products -> Collections, choose a collection, and add a list of collections to cross-promote in the metafields section.
* In the Theme Editor, connect the dynamic data source for subcollections.

</details>

You can now choose custom lists of collections for any of your collection pages. Simply return to the Shopify Admin, Collections, and choose a list of collections for any of your existing collections.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pipeline.groupthought.com/collections/collection-pages/subcollections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
