I am trying to format my text based on whether or not the current item has children. How can I detect this? For example, if the item that is being rendered does not have children, then I would like to add an additional link to the box.
I’m assuming that this could be handled using the following, but I’m not sure how to use it in the box template code.
{{subordinatesCount pochContext.needSubordinatesCount}}
It's not possible to find items with no subordinates through the number of subordinates mechanism. This feature loads dynamically, thus it's not possible get the value in the onBoxRendered event.