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

Field xtype

Version: Free.

Why this type

Legacy xtype key for schema migration. Inspector renders plain InputText. Semantic alias for text when the schema still uses key xtype.

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

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