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

A "why us" block: each item has an icon (URL or class), title, and body text. Richer than the Cards section.
Информация
Requires PageBuilder Pro.
Features repeater: Icon, Title, Description. Icon can be an SVG/PNG URL or a theme CSS class.
| Parameter | Value |
|---|---|
| key | features |
| Layer | Pro |
| Category | content (content) |
| Chunk | pagebuilderpro_features |
| Requires | pro |
Fill these fields in the section inspector. Field types are documented in the field types reference.
title) Type text. Optional.
items) Type repeater. Required. Repeatable rows. "Add" button in the inspector.
Each row:
| Field | Type | Label | Required |
|---|---|---|---|
icon | image | Icon | no |
title | text | Title | yes |
text | textarea | Text | no |
pb-features with icons and text.
Example payload after save. Media, video, and map values may be enriched on output:
{
"title": "Section title",
"items": [
{
"_rowId": "00000000-0000-4000-8000-000000000001",
"icon": {
"url": "assets/images/example.jpg",
"id": 12,
"filename": "example.jpg",
"extension": "jpg",
"title": "example.jpg",
"width": 1920,
"height": 1080,
"type": "image"
},
"title": "Section title",
"text": "Supporting text under the title."
}
]
}Fenom chunk pagebuilderpro_features:
<section class="pb-section pb-section--features pb-features{if $cssClass} {$cssClass|escape}{/if}" data-pb-section="features"{if $id} id="pb-{$id|escape}"{/if}>
<div class="pb-section__inner pb-features__inner">
{if $title}
<h2 class="pb-heading pb-features__title">{$title|escape}</h2>
{/if}
<div class="pb-features__grid pb-grid pb-grid--cards">
{foreach $items as $item}
<article class="pb-features__item">
{if $item.icon}
{include 'pagebuilder_partial_image' image=$item.icon alt=$item.title class='pb-features__icon'}
{/if}
<h3 class="pb-features__item-title">{$item.title|escape}</h3>
{if $item.text}
<p class="pb-features__item-text">{$item.text|escape}</p>
{/if}
</article>
{/foreach}
</div>
</div>
</section>PageBuilderPro/core/components/pagebuilderpro/sections/features.json