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


Version: Pro (advanced-fields).
A list of { title, file } rows. The inspector does not save empty rows. file is a media value, same as file: an object with url, filename, and title, or a path string. In the chunk use {$row.file.url}.
{
"name": "files",
"type": "documents",
"label": "Documents"
}{
"files": [
{
"title": "Price list",
"file": { "url": "/assets/files/price.pdf", "filename": "price.pdf" }
}
]
}{foreach $files as $row}
<a href="{$row.file.url|escape}">{$row.title|escape}</a>
{/foreach}