How do I get a pages navon with with the page contentid?

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).

Check out the PSOFolderTools.getChildFolders method in the PSOToolkit. This will return the child folders and items for a given path, regardless of NavOns. You could start at the root folder and write a macro to recurse the site folder tree in this fashion.

-n