HBS_CHILDREN 

Returns the children of the current view model as a list. The view model must implement CompositeViewModel (e.g. ViewModelCollection ). Returns null when the view model has no children.

Each child is processed using the sub-configuration of HBS_CHILDREN .

Frontend register

While iterating, HBS_CHILDREN writes two values to the frontend register that TypoScript conditions can read via register:

  • HBS_CHILDREN_COUNT – number of children
  • HBS_CHILDREN_CURRENT – index of the child being processed (unset after the loop)

Example

options = HBS_CHILDREN
options {
    label = HBS_LABEL

    checked = HBS_TAG
    checked.attribute = checked
}
Copied!