HBS_CHILDREN
Returns the children of the current view model as a list. The view model must implement
Composite (e.g.
View). Returns
null
when the
view model has no children.
Each child is processed using the sub-configuration of
HBS_.
Frontend register
While iterating,
HBS_ writes two values to the frontend register
that TypoScript conditions can read via register:
HBS_– number of childrenCHILDREN_ COUNT HBS_– index of the child being processed (unset after the loop)CHILDREN_ CURRENT
Note
Since TYPO3 v14 the register is part of the frontend register stack on the global
request object (
frontend. request attribute) rather than the
legacy
$GLOBALS array. The extension handles both automatically.
Example
options = HBS_CHILDREN
options {
label = HBS_LABEL
checked = HBS_TAG
checked.attribute = checked
}