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

One frame across the content column. Use for an illustration, screenshot, or banner without a button.
Image is required. Alt text helps SEO and screen readers. Caption renders below the image.
| Parameter | Value |
|---|---|
| key | image |
| Layer | Free |
| Category | media (media) |
| Chunk | pagebuilder_image |
| Requires | — |
Fill these fields in the section inspector. Field types are documented in the field types reference.
image) Type image. Required.
alt) Type text. Optional.
caption) Type text. Optional.
pb-image with the image partial.
Example payload after save. Media, video, and map values may be enriched on output:
{
"image": {
"url": "assets/images/example.jpg",
"id": 12,
"filename": "example.jpg",
"extension": "jpg",
"title": "example.jpg",
"width": 1920,
"height": 1080,
"type": "image"
},
"alt": "Image description for screen readers",
"caption": "Caption under the image"
}Fenom chunk pagebuilder_image:
<section class="pb-section pb-section--image pb-image{if $cssClass} {$cssClass|escape}{/if}" data-pb-section="image"{if $id} id="pb-{$id|escape}"{/if}>
<div class="pb-section__inner pb-image__inner">
<figure class="pb-image__figure">
{include 'pagebuilder_partial_image' image=$image alt=($alt ?: $caption) class='pb-image__media'}
{if $caption}
<figcaption class="pb-image__caption">{$caption|escape}</figcaption>
{/if}
</figure>
</div>
</section>core/components/pagebuilder/sections/image.json