We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16430
    • 217 Posts
    Quote from: BobRay at Oct 28, 2010, 03:54 PM
    You could try [[+idx]], which is updated for every resource pulled. Otherwise, a custom snippet something like this:

    [[!getNumber? &parentId=`12`]]


    <!--?php
    /* getNumber snippet */
    $resources = $modx--->getCollection('modResource', array('parent'=>$parentId,'published'=>'1', 'deleted'=>'0'));
    
    return  count($resources);

    How can I filter out only results for currently loged user?