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


Version: Pro (advanced-fields).
The picker chooses an SVG from two sets: Lucide (ISC, 24×24) and Heroicons (MIT, 24×24). A class such as fa-star is not a valid value.
An icon name is lowercase letters, digits, and hyphens. In the inspector you can type lucide:star or an object { "set", "name" }.
IconValueResolver adds a ready svg on output. An unknown name yields empty set, name, and svg.
{
"name": "icon",
"type": "icon",
"label": "Icon"
}Saved value:
{
"icon": { "set": "lucide", "name": "star" }
}After render the same key includes svg:
{
"icon": {
"set": "lucide",
"name": "star",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" ...></svg>"
}
}svg is already HTML. Do not run it through escape.
<span class="pb-icon">{$icon.svg}</span>