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

Combines Contact and Map: contacts and CTA beside the map iframe.
Информация
Requires PageBuilder Pro.
Fill contact fields and Location on the map. One block instead of two sections.
| Parameter | Value |
|---|---|
| key | contact_map |
| Layer | Pro |
| Category | conversion (conversion) |
| Chunk | pagebuilderpro_contact_map |
| Requires | pro |
Fill these fields in the section inspector. Field types are documented in the field types reference.
title) Type text. Optional.
text) Type textarea. Optional.
phone) Type text. Optional.
email) Type text. Optional.
location) Type map. Required. Map pin. Site output is iframe via MapEmbedResolver.
button_label) Type text. Optional.
button_url) Type url. Optional.
pb-contact-map: contacts + map iframe.
Example payload after save. Media, video, and map values may be enriched on output:
{
"title": "Section title",
"text": "Supporting text under the title.",
"phone": "+7 (999) 123-45-67",
"email": "hello@example.com",
"location": {
"lat": 55.751244,
"lng": 37.618423,
"embed_url": "https://yandex.ru/map-widget/v1/..."
},
"button_label": "Learn more",
"button_url": "https://example.com/action"
}Fenom chunk pagebuilderpro_contact_map:
<section class="pb-section pb-section--contact-map pb-contact-map{if $cssClass} {$cssClass|escape}{/if}" data-pb-section="contact_map"{if $id} id="pb-{$id|escape}"{/if}>
<div class="pb-section__inner pb-contact-map__inner">
{if $title}
<h2 class="pb-heading pb-contact-map__title">{$title|escape}</h2>
{/if}
<div class="pb-contact-map__layout">
<div class="pb-contact-map__details">
{if $text}
<p class="pb-contact-map__text">{$text|escape}</p>
{/if}
{if $phone}
<p class="pb-contact-map__phone"><a href="tel:{$phone|escape:'url'}">{$phone|escape}</a></p>
{/if}
{if $email}
<p class="pb-contact-map__email"><a href="mailto:{$email|escape:'url'}">{$email|escape}</a></p>
{/if}
{if $button_label && $button_url}
<a class="pb-contact-map__button pb-button" href="{$button_url|escape}">{$button_label|escape}</a>
{/if}
</div>
{if $map_embed_url}
<div class="pb-contact-map__map">
<iframe
class="pb-contact-map__frame"
title="{$title|default:'Map'|escape}"
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
src="{$map_embed_url|escape}"
></iframe>
</div>
{/if}
</div>
</div>
</section>PageBuilderPro/core/components/pagebuilderpro/sections/contact_map.json