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

Alternative to Rich text for long reads. Block editor: H2–H4, lists, quotes, inline images.
Информация
Requires PageBuilder Pro.
editorjs stores block JSON. The chunk renders HTML inside .pb-richtext__content.
| Parameter | Value |
|---|---|
| key | structured_content |
| Layer | Pro |
| Category | content (content) |
| Chunk | pagebuilderpro_structured_content |
| Requires | pro |
Fill these fields in the section inspector. Field types are documented in the field types reference.
title) Type text. Optional.
body) Type editorjs. Required. Block editor. Site output is HTML.
HTML from editorjs inside .pb-richtext__content.
Example payload after save. Media, video, and map values may be enriched on output:
{
"title": "Section title",
"body": {
"json": {},
"html": "<p>Structured Editor.js content</p>"
}
}Fenom chunk pagebuilderpro_structured_content:
{var $bodyHtml = ''}
{if $body is array}
{var $bodyHtml = $body.html|default:''}
{else}
{var $bodyHtml = $body}
{/if}
<section class="pb-section pb-section--structured-content pb-structured-content pb-richtext{if $cssClass} {$cssClass|escape}{/if}" data-pb-section="structured_content"{if $id} id="pb-{$id|escape}"{/if}>
<div class="pb-section__inner pb-structured-content__inner pb-richtext__inner">
{if $title}
<h2 class="pb-heading pb-structured-content__title">{$title|escape}</h2>
{/if}
{if $bodyHtml}
<div class="pb-richtext__content pb-structured-content__body">
{$bodyHtml}
</div>
{/if}
</div>
</section>PageBuilderPro/core/components/pagebuilderpro/sections/structured_content.json