# Metaobject field

> The values of `metaobject` inside `smootify-metaobject` or `[metafield]` or `[variant-metafield]` or `[customer-metafield]` or `[company-metafield]`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/attributes/metaobject  
Updated: 2026-10-13

## At a glance

| Way | Element and what it needs | Pages |
|---|---|---|
| A list of one type | `smootify-metaobjects` with `data-type`, the definition's type | yes, `data-limit` entries at a time |
| The metaobjects of a product | `smootify-metaobjects` with `data-type` set to `metafield.` and the metafield's namespace and key, and `data-product-id` | yes, like a list of one type |
| One entry | `smootify-metaobject` on its own, with `data-type` and `data-handle` (or `data-id`) | no; when the entry does not exist, the element is removed |

More in [the guide](https://www.smootify.io/docs/features/metaobjects).

## Where it can go

- **Inside any of:** [`smootify-metaobject`](https://www.smootify.io/docs/reference/elements/smootify-metaobject), `[metafield]`, `[variant-metafield]`, `[customer-metafield]`, `[company-metafield]`.

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `metaobject="field key"` | Value | on text, rich, container, link, button, image, video |
| `property="--metafield-color"` | Color variable | on any; with [metaobject] |
| `data-attr="href"` | Into an attribute | on any; with [metaobject] |
| `separator=", "` | List separator | Used as written, spaces included: a comma and a space joins with a comma and a space; on any; with [metaobject] |
| `data-digits="2"` | Decimal digits | on any; with [metaobject] |
| `data-path="items.0.name"` | JSON path | on any; with [metaobject] |
