I’m building a Product Catalog which consists of three parts templates
Product Collections
, Product List
and Product
which can be used like this:
- $site
- Product Collections
- Product List
- Product
- Product
- Product List
- Product
- Product
- Product List
- Product List
- Product
- Product
- Product Collections
I want Product Collections to be flexible in a way that products can belong to multiple collections, a collection can have a Collection Image and a certain collection can be marked as catch all, holding all products from sibling product lists (Collections).
In my product.yml I have:
fields:
collections:
label: Collections
type: checkboxes
options: query
query:
page: ../../
fetch: children
value: '{{uid}}'
text: '{{title}}'
template: product-list
columns: 4
```
To me there's three possible ways that I can define my Product Collections:
1. **Folder structure** (and conditional checkboxes on the Product to specify which product lists it should belong to)
2. **Tags**
3. **Structured fields** (maybe?)
I'm currently venturing down the first option, for simplicity and easy Product List (collection) metas like image and Catch All (Show all products) -toggle but now I'm afraid it falls short in terms of having this option unnecessarily available in the Collections checkboxes for the product (i don't think it's possible to define it and filter it out) also as the file structure isn't unnecessarily being enforced as products can belong to multiple collections (Product List parent pages) it doesn't feel completely right and easily navigable anymore.
**Which route would you pick to achieve what I'm trying to do here?** :blush: