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

A short accent block in the middle or at the end of the page. Title, supporting text, and one button with a URL.
pb-cta class ships with the package themeThe button is hidden without a URL. Set both label and link.
| Parameter | Value |
|---|---|
| key | cta |
| Layer | Free |
| Category | conversion (conversion) |
| Chunk | pagebuilder_cta |
| Requires | — |
Fill these fields in the section inspector. Field types are documented in the field types reference.
title) Type text. Required.
text) Type textarea. Optional.
button_label) Type text. Required.
button_url) Type url. Required.
pb-cta with a pb-button link.
Example payload after save. Media, video, and map values may be enriched on output:
{
"title": "Section title",
"text": "Supporting text under the title.",
"button_label": "Learn more",
"button_url": "https://example.com/action"
}Fenom chunk pagebuilder_cta:
<section class="pb-section pb-section--cta pb-cta{if $cssClass} {$cssClass|escape}{/if}" data-pb-section="cta"{if $id} id="pb-{$id|escape}"{/if}>
<div class="pb-section__inner pb-cta__inner">
<h2 class="pb-heading pb-cta__title">{$title|escape}</h2>
{if $text}
<p class="pb-cta__text">{$text|escape}</p>
{/if}
{if $button_label && $button_url}
<div class="pb-cta__actions">
<a class="pb-cta__button pb-button" href="{$button_url|escape:'url'}">{$button_label|escape}</a>
</div>
{/if}
</div>
</section>core/components/pagebuilder/sections/cta.json