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

Field xtype

Version: Free.

Why this type

The old xtype key, for schemas that are not switched to text yet. The inspector shows a plain text field: the ExtJS widget is not loaded. If the JSON type is still xtype, the field behaves like text.

When to use

  • Fields from old MODX form configs
  • Placeholder for future widget
  • Dev-only semantic type name

Tips

UI does not mount Ext modx-combo. New schemas use native text or combo.

Similar types

  • text for new scalar fields
  • combo for dynamic select behavior

Schema

json
{
  "name": "ext",
  "type": "xtype",
  "label": "Ext",
  "xtype": "modx-combo",
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

String.

Section data

Key ext in the section data:

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

Chunk example

modx
[[+ext]]
fenom
{$ext|escape}

Notes

The inspector renders plain InputText. xtype is only a hint; MODX does not mount an ExtJS widget.

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