# Collection metafield

> The values of `collection-metafield` inside `smootify-collection`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/attributes/collection-metafield  
Updated: 2026-11-26

## Where it can go

- **Inside** [`smootify-collection`](https://www.smootify.io/docs/reference/elements/smootify-collection).
- On text, rich, container, link, a real `<button>` (a Webflow Button is a link, a Form Button an input), image, video.

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `collection-metafield="key, like banner_text"` | Value | on text, rich, container, link, button, image, video |
| `namespace="custom"` | Namespace | on any; with [collection-metafield] |
| `property="--metafield-color"` | Color variable | on any; with [collection-metafield] |
| `data-attr="href"` | Into an attribute | on any; with [collection-metafield] |
| `separator=", "` | List separator | Used as written, spaces included: a comma and a space joins with a comma and a space; on any; with [collection-metafield] |
| `data-digits="2"` | Decimal digits | on any; with [collection-metafield] |
| `data-path="items.0.name"` | JSON path | on any; with [collection-metafield] |
| `data-format="table"` | As a table | A JSON field shaped as {“headers”:[…],“rows”:[[…]]}: on a `<table>` the header cell, the row and the cell are copied; with divs mark them with table=head\|row\|cell. Hidden when empty or not that shape; on container; with [collection-metafield] |
