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

Version: Free.
{$photo.url}, not a bare path string{
"name": "photo",
"type": "image",
"label": "Image",
"description": "Recommended size 1920×1080",
"width": 50,
"tab": "Content",
"active": true
}Media object. The Info button edits width, height, and title. Picking from the browser fills size and filename.
Key photo in the section data after save enrich:
{
"photo": {
"url": "assets/images/hero.jpg",
"id": 12,
"path": "assets/images/",
"filename": "hero.jpg",
"extension": "jpg",
"name": "hero",
"title": "hero.jpg",
"width": 1920,
"height": 1080,
"size": 245760,
"type": "image"
}
}width, height, and size are filled from disk when MODX can access the file.<img src="{$photo.url|escape}" width="{$photo.width}" height="{$photo.height}" alt="{$photo.title|escape}">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 |
responsive. Value is a media object, enrich on save.See fields overview.