Find total number of pages on a site
- Applies to:
- All MindTouch Versions
- Role required:
- Admin
Use different methods to find a count of either all pages or just published pages.
Issue
- How do I find the total number of pages on my site?
- Difference between the number of pages the API shows and the number of pages the Content Aging report shows.
Resolution
There are two methods:
Content Aging Report
The Content Aging Report lists "Total number of pages counted in this report"
This number is all pages including unpublished pages
API
Use the @api/deki/pages API call and count the number of <page>
nodes
This only includes pages that have been published.