Hi,
is there any snippet available that returns the number of document in a particular folder?
cheers,
G
-
MODX Staff
- 10,725 Posts
Ok, why would you query the database for this when you can get count($modx->getChildIds($resourceparent, 1)) much more quickly, and without an extra db hit? Just curious...
-
MODX Staff
- 12,272 Posts
Really think about an option to show only pages that are published and only set to be in the menu ... that way you can get an idea of the number of "real" content pages. (e.g., excludes 404 pages, thank you pages, etc.)
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
so is there a better way i should be doing this?