
PageBuilder
Visual section builder for MODX 3: draft and publish without overwriting resource content


Section accordion renders panels as <details>. There is no extra JavaScript. Chunk: pagebuilderpro_accordion. Requires PageBuilder Pro.
open marks whether a panel is open by default.
| Field | Type | Required | Purpose |
|---|---|---|---|
title | text | no | Section title |
items | repeater | yes | Panels |
items.title | text | yes | Panel title |
items.body | textarea | yes | Text |
items.open | toggle | no | Open by default |
Each row is <details class="pb-accordion__item">. The open attribute is set when items.open is true. The section loads no JavaScript. An empty repeater leaves an empty div.pb-accordion__list.
{
"title": "Terms",
"items": [
{ "title": "Delivery", "body": "Next day in the city", "open": true }
]
}