
PageBuilder
Visual section builder for MODX 3: draft and publish without overwriting resource content
- MODX 3
- PHP 8.2
- Vue 3


Section notice shows a short message. Chunk: pagebuilderpro_notice. Requires PageBuilder Pro.

tone: info, success, warning, danger. The tone background sits on the text block (width: fit-content), not across the whole section.
| Field | Type | Required | Purpose |
|---|---|---|---|
tone | select | no | info, success, warning, danger |
title | text | no | Title |
text | textarea | yes | Text |
The root is <aside role="note">. The tone class is pb-notice--info, pb-notice--success, pb-notice--warning, or pb-notice--danger. An empty tone becomes info. The same tone is written to data-pb-tone. text is required. The title prints only when set.
{
"tone": "warning",
"title": "Warehouse",
"text": "Shipping from 20 September"
}Fenom chunk pagebuilderpro_notice:
{set $toneValue = $tone|default:'info'}
<aside class="pb-section pb-section--notice pb-notice pb-notice--{$toneValue|escape}{if $cssClass} {$cssClass|escape}{/if}" data-pb-section="notice" data-pb-tone="{$toneValue|escape}"{if $id} id="pb-{$id|escape}"{/if} role="note">
<div class="pb-section__inner">
{if $title}<h2 class="pb-heading pb-notice__title">{$title|escape}</h2>{/if}
<p class="pb-notice__text">{$text|escape}</p>
</div>
</aside>