Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Pro
  5. jsongrid

Field jsongrid

Version: Pro.

Why this type

Fields schema like repeater but single row object. Compact than one-row repeater. Pro for fixed-shape config block.

When to use

  • SEO object title description in one field
  • Overlay settings bundle
  • Single row table without array foreach

Tips

Row list is repeater. Flat keys without wrapper object is fieldset.

Similar types

Schema

json
{
  "name": "row",
  "type": "jsongrid",
  "label": "Row",
  "fields": [
    {
      "name": "title",
      "type": "text",
      "label": "Title"
    }
  ],
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

Object with nested field keys.

Section data

Key row in the section data: one object with nested field keys:

json
{
  "row": {
    "title": "SEO title",
    "description": "SEO description"
  }
}

Chunk example

fenom
{if $row.title}
  <h4>{$row.title|escape}</h4>
{/if}

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
  • Also: fields[]: one row = one object in data (not an array).

See fields overview.

See also