2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

Metaobject field

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

v2.0 beta
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. Values

At a glance

smootify-metaobjects

A list of one type

Needs
data-type, the definition's type.
Pages
Yes: data-limit entries at a time.
smootify-metaobjects

The metaobjects of a product

Needs
data-type: metafield. and the metafield's namespace and key. data-product-id.
Pages
Yes, like a list of one type.
smootify-metaobject

One entry

Needs
data-type and data-handle, or data-id.
Pages
No. When the entry does not exist, the element is removed.

More in the guide.

Where it can go

  • Inside any of: smootify-metaobject, [metafield], [variant-metafield], [customer-metafield], [company-metafield].

Values

Attribute and valueWhat it isNotes
metaobject="field key"Valueon text, rich, container, link, button, image, video
property="--metafield-color"Color variableon any; with [metaobject]
data-attr="href"Into an attributeon any; with [metaobject]
separator=", "List separatorUsed as written, spaces included: a comma and a space joins with a comma and a space; on any; with [metaobject]
data-digits="2"Decimal digitson any; with [metaobject]
data-path="items.0.name"JSON pathon any; with [metaobject]

    ↑ ↓ to moveEnter to openEsc to close