
PageBuilder
Visual section builder for MODX 3: draft and publish without overwriting resource content
- MODX 3
- PHP 8.2
- Vue 3


Version: Pro (advanced-fields).
A dropdown. Options load from a MODX class through optionsSource and the mgr/field/options processor, or from a static options list in the schema. This is not a grid. The row grid is table.
The list is empty only when both options and optionsSource are missing. A non-empty static options is used first.
modTemplateModResource picker: relation or combo. Multiple ids: tablemulticombo.
table_key{
"name": "template",
"type": "tablecombo",
"label": "Template",
"optionsSource": {
"class": "modTemplate",
"valueField": "id",
"labelField": "templatename",
"limit": 50
},
"tab": "Content",
"width": 100,
"active": true
}valueField value.
Key template in the section data: valueField from optionsSource:
{
"template": 3
}[[+template]]{if $template}{$template}{/if}For fields with name that are stored in the section data:
| Key | Type | Role | CMP |
|---|---|---|---|
tab | string | Group subtitle in the inspector | yes |
width | 25, 33, 50, 66, 75, 100 | Field width as % of the row (flex). The CMP offers only these values | yes |
description | string | Hint under the label | yes |
default | any | Initial value for a new section | yes |
active | bool | false hides the field in the inspector | yes |
required | bool | Required on publish (draft still saves) | yes |
See fields overview.