I am trying to create a list of all pages and show the depth of the page in the site.
Is there a way I can get the navon of the current page from the template that is rendering the page content item? Then I could render the depth property of the navon for the page?
I know I can do this by walking down the nav tree. But that would miss all the pages that are not in the managed navigation and I need a full list of all the pages in the site (both those attached to navons and those that are not landing pages).