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

Version: Free.
Block content with headings, lists, embeds. Html ready for chunk, json for custom render. Structure safer than free-form HTML.
Chunk usually {$body.html}, not raw json. Simple HTML without blocks is faster in richtext.
{
"name": "body",
"type": "editorjs",
"label": "Content",
"tab": "Content",
"width": 100,
"active": true
}Object { json, html }; on the frontend use html.
Key body in the section data:
{
"body": {
"json": {
"time": 1710000000000,
"blocks": [
{
"type": "paragraph",
"data": {
"text": "Block text"
}
}
],
"version": "2.29.0"
},
"html": "<p>Block text</p>"
}
}html; json is raw Editor.js.<div class="pb-richtext__content">{$body.html}</div>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 |
{ json, html }; in a chunk use {$field.html}.See fields overview.