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


Version: Free.
The editor picks a color from a fixed list, not any hex code. Options work like select, but they are shown as color samples. That keeps random colors off the site.
A free hex code uses color. The saved value is the option key, not a CSS rule.
{
"name": "theme",
"type": "colorpalette",
"label": "Color",
"swatches": [
"#111827",
"#c2410c"
],
"tab": "Content",
"width": 100,
"active": true
}HEX string.
Key theme in the section data (HEX):
{
"theme": "#3b82f6"
}<span style="color: [[+theme]]">…</span><span style="color: {$theme|escape}">…</span>In CMP: optionsText (same as select); on save both options and swatches are written.
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 |
swatches or options with colors.See fields overview.