I'm doing a custom template for the Concrete5 autonav block and am wondering if there is a way to get the total number of descendants (children, grandchildren, and so on) for each particular nav item? For example, get descendants for the top level navigation to show the total number of pages that are descendants under each:
Tutorials (33)
Freebies (25)
Lesson Plans (10)
The Autonav block provides a flat array of objects (representing each page), and each object has an ID for it's parent, but I can't wrap my head around looping through and building an array for the multilevel navigation.
Does Concrete5 offer a method for this, or do I need to figure out how to build a loop that extracts this information?
I essentially am looking for the functionality of this thread (unfortunately they don't answer the question)