<?php // <- Strip me out after placing in Snippet Editor #:::::::::::::::::::::::::::::::::::::::: # Snippet name: DocCount # Short Desc: Displays # of documents in a specified folder # Created By Mark Kaplan ([email protected]) # # Date: April 3, 2006 # # Usage: [[DocCount? &startID=`1`]] #:::::::::::::::::::::::::::::::::::::::: $resourceparent = isset($startID) ? $startID : $modx->documentIdentifier; $resource = $modx->getActiveChildren($resourceparent, 'id', 'ASC', $fields='*'); $num = count($resource); return $num;