Given a page or item, how do I count the number of children?
{{ i_page.children }}
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.
Sign up to join this communityYou can try something like the following:
{{- childrenCount = i_page.children | array.size -}}
{{ childrenCount }}