Content objects
The extension registers the following custom content objects (
HBS_*
). They
are only useful inside a
process- data processor block; using them
elsewhere may log a warning and return an empty string.
Every
HBS_*
content object supports the standard stdWrap
sub-key. The value resolved by the content object is passed through
std
before being stored in the processed data array.
The table below lists all content objects, roughly ordered from the ones needed in almost every form to more specialised ones.
| Content object | Purpose |
|---|---|
| HBS_RENDERABLES | Iterates form elements and applies per-type configuration |
| HBS_TAG | Reads HTML attributes (id, name, value, …) of a rendered element |
| HBS_LABEL | Returns the translated label of an element |
| HBS_NAVIGATION | Resolves previous, next and submit buttons |
| HBS_PASSTHROUGH | Renders an element with EXT:form's default Fluid partials |
| HBS_FORM_VALUE | Returns the submitted value of an element (e.g. on summary pages) |
| HBS_PROPERTY | Reads an arbitrary property of an element or its view model |
| HBS_TRANSLATE_PROPERTY | Translates an element property (e.g. placeholder, description) |
| HBS_VALIDATION_RESULTS | Returns validation results of an element |
| HBS_TRANSLATE_ERROR | Translates a validation error message |
| HBS_CHILDREN | Iterates child view models (e.g. select options, upload fields) |
| HBS_VH_CONTENT | Returns the raw output of the underlying Fluid view helper |