PageBuilder
Visual section builder for MODX 3. Draft and publish without overwriting resource content

Version: Free.
value, not the label{
"name": "size",
"type": "select",
"label": "Size",
"options": [
{
"label": "S",
"value": "sm"
},
{
"label": "L",
"value": "lg"
}
],
"tab": "Content",
"width": 100,
"active": true
}String: selected option value.
Key size in the section data: the selected option value string:
{
"size": "lg"
}{switch $size}
{case 'sm'}<div class="block block--sm">{/case}
{case 'lg'}<div class="block block--lg">{/case}
{default}<div class="block">{/default}
{/switch}Dynamic list: optionsSource → processor mgr/field/options.
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–100 | Field width as % of the row (flex) | 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 |
options or optionsSource.See fields overview.