Depending on the version number your line numbers may vary.
Line 217:
$categoryNumber = 1; // initialize li class number - sottwell
//loop through and process subchildren
foreach ($children as $child) {
// figure out if it's a containing category folder or not
Line 277:
// it's an empty folder and using Category Folders
if ($useCategoryFolders && $itsEmpty) {
$class .= ($class ? ' ' : '').$categoryClass.$categoryNumber; // append li number - sottwell
}
and line 298:
$class = '';
$categoryNumber++; // increment li class number - sottwell
}
}
$output .= "</ul>$ie";
Snippet call:
[[DropMenu?startDoc=`49`]]
I only wanted this for empty top-level folders, so that’s where I added the number variable. You can see where I used this
here. Each top-level li has a different background image. The "category" class is automatically added to empty folders; you can of course change the name in the snippet call with &categoryClass.