Metaobject field
The values of `metaobject` inside `smootify-metaobject` or `[metafield]` or `[variant-metafield]` or `[customer-metafield]` or `[company-metafield]` or `[collection-metafield]`.
On this page
Where it can go
- Inside any of:
smootify-metaobject,[metafield],[variant-metafield],[customer-metafield],[company-metafield],[collection-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] |
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 [metaobject] |