Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Free
  5. readonly

Field readonly

Version: Free.

Why this type

Editors see value but cannot edit. Same scalar in data as text. Fits SKU, id, sync from external system.

When to use

  • SKU or article from MS3 on product section
  • Preview slug or id after save
  • Hint that value is auto-filled

Tips

Fully hidden value use hidden. Editable copy is text.

Similar types

Schema

json
{
  "name": "sku",
  "type": "readonly",
  "label": "SKU",
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

Read-only string.

Section data

Key sku in the section data:

json
{
  "sku": "sku-001"
}

Chunk example

html
<span class="sku">{$sku|escape}</span>

Common properties

For fields with name that are stored in the section data:

KeyTypeRoleCMP
tabstringGroup subtitle in the inspectoryes
width25–100Field width as % of the row (flex)yes
descriptionstringHint under the labelyes
defaultanyInitial value for a new sectionyes
activeboolfalse hides the field in the inspectoryes
requiredboolRequired on publish (draft still saves)yes

See fields overview.

See also