We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26503
    • 620 Posts
    Has anyone implemented an advanced search for with date fields for a start and end date on published on?

    The docs & examples seem to be missing for this one particular example.

    If I were to guess [which is exactly what I am doing] the query hook might look something like:

    $andConditions = array(
        'modResource.publishedon:>=' => 'dtp_input_from:request:all',
        'modResource.publishedon:<=' => 'dtp_input_to:request:all'
    );
    
    $qhDeclaration = array(
        'qhVersion' => '1.2',
    	'andConditions' => $andConditions
    );
    
    $hook->setQueryHook($qhDeclaration);
    
    return true;


    But will always return no results.

    ideas?

    -thanks
      *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

      Sean Kimball CLP, CLS.
      Technical Director / Sr. Developer | BigBlock Studios
      ._______________________________________________.
      Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
      27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
      phone/fax: 905-426-5525