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

Two-column table for technical data. Optional title and intro above the table.
Информация
Requires PageBuilder Pro.
table field edits in the inspectorSpecifications table field: parameter and value columns. Striped rows enables zebra styling.
| Parameter | Value |
|---|---|
| key | spec_table |
| Layer | Pro |
| Category | content (content) |
| Chunk | pagebuilderpro_spec_table |
| Requires | pro |
Fill these fields in the section inspector. Field types are documented in the field types reference.
title) Type text. Optional.
intro) Type textarea. Optional.
specs) Type table. Required. Table with fixed columns.
Columns:
| Column | Type | Label |
|---|---|---|
label | text | Parameter |
value | text | Value |
striped) Type yesno. Optional. Yes/no toggle.
HTML table pb-spec-table.
Example payload after save. Media, video, and map values may be enriched on output:
{
"title": "Section title",
"intro": "Short intro before the main content.",
"striped": true
}Fenom chunk pagebuilderpro_spec_table:
{var $rows = $spec_rows|default:($specs|default:[])}
<section class="pb-section pb-section--spec-table pb-spec-table{if $striped} pb-spec-table--striped{/if}{if $cssClass} {$cssClass|escape}{/if}" data-pb-section="spec_table"{if $id} id="pb-{$id|escape}"{/if}>
<div class="pb-section__inner pb-spec-table__inner">
{if $title}
<h2 class="pb-heading pb-spec-table__title">{$title|escape}</h2>
{/if}
{if $intro}
<p class="pb-spec-table__intro">{$intro|escape}</p>
{/if}
{if $rows && ($rows | length) > 0}
<div class="pb-spec-table__scroll">
<table class="pb-spec-table__table">
<thead>
<tr>
<th scope="col">Parameter</th>
<th scope="col">Value</th>
</tr>
</thead>
<tbody>
{foreach $rows as $row}
<tr>
<th scope="row">{$row.label|default:''|escape}</th>
<td>{$row.value|default:''|escape}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{else}
<p class="pb-spec-table__empty">Add specification rows in the inspector.</p>
{/if}
</div>
</section>PageBuilderPro/core/components/pagebuilderpro/sections/spec_table.json