We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12525
    • 1 Posts
    Hello,

    I am new to Modx and already working on my first snippet.
    I would like to find a way to select all resources where parent > 1 and publish date = september (or 09), using the publishedon field.
    For the parent id, I already know how to do. But I cannot find how to proceed with the date field...


    $c=array(
      'parent:>' => '1',
    );
    
    $resource= $modx->getCollection('modResource',$c);


    Thanks a lot !