$main = array( 'package' => 'pmdproperties', 'packagePath' => '{core_path}components/pmdproperties/model/', 'class' => 'Pmdproperty', 'fields' => 'thumbnail , address , location , price , propertytype , numbeds , coords , contract , featured , reduced', 'withFields' => 'address , location , propertytype , numbeds , contract , price', ); $andConditions = array( 'Pmdproperty.propertytype:=' => 'propertyType:request:all', 'Pmdproperty.numbeds:=' => 'beds:request:any', 'Pmdproperty.contract:=' => 'forSale forRent', 'Pmdproperty.price:>=' => 'inputPriceFrom,request,none', 'Pmdproperty.price:>=' => 'inputPriceTo,request,none' ); // set the query hook declaration $qhDeclaration = array( 'qhVersion' => '1.2', 'main' => $main, 'andConditions' => $andConditions, ); $hook->setQueryHook($qhDeclaration); return true;
This question has been answered by alexmercenary. See the first response.