I guess I should mention I tried that however this is the snippet call I do for ditto (that I would have to duplicate for my total)
//[!Ditto?parents=`2,3`&depth=`0`&display=`all`&tpl=`coverflowTpl`&filter=`hidemenu,0|tvscreenShotRaw,[*screenShotRaw*],2`!]
$documents = $this->modx->runSnippet("Ditto", array(
"parents" => ’2,3’,
"display" => "all",
"depth" => "0",
"filter" => "hidemenu,0|tvscreenShotRaw,[*screenShotRaw*],2",
"tpl" => "@CODE [+id+]," ));
$documents = explode( ’,’, $documents);
$totalDocs = (count($documents) - 1);
but $totalDocs only returns 40 when it should return 29 which the commented out ditto call returns when you count them (basically cause it doesnt seem to be running the filter part)
I also tried this method
$dittoID=’dittoTest’;
$resource = $this->modx->getPlaceholder($dittoID . "_ditto_resource");
$c = count($resource);
an adding the id to the ditto call (which works if I was calling the snippet that needed the returned number after the original ditto snippet is called but I need the number inside the tpl (chunk) of the original ditto call which returns 0.
My Guess is that I have to run a custom db call to get the data unless there is a way of getting the runSnippet to do the filter?