
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 writes HTML, CSS, or JSON as code. mode sets the language: html, css, javascript, or json. The visual editor is not used here.
Content editors usually prefer richtext. Do not escape HTML in the chunk when you output markup intentionally.
{
"name": "markup",
"type": "ace",
"label": "Markup",
"mode": "html",
"tab": "Content",
"width": 100,
"active": true
}Source code string.
Key markup in the section data:
{
"markup": "<section class=\"hero\">\n …\n</section>"
}[[+markup]]{$markup}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 |
See fields overview.