$andConditions = array(
'modResource.id:=' => 'category:request:all',
//'tv.story-details-manufacturer:=' => 'manufacturer:request:all',
//'tv.story-details-model:=' => 'model:request:all',
//'tv.story-details-country:=' => 'country:request:all',
//'tv.story-details-country:MATCH' => 'country:request:all',
//'tv.story-details-city:=' => 'city:request:all',
//'tv.story-details-spotter:LIKE' => '%spotter%:request'
//'modResource.publishedon' => 'timeadded:request'
);
$sortby = 'sort';
$qhDeclaration = array(
'qhVersion' => '1.2',
'andConditions' => $andConditions,
'sortby' => $sortby,
);
$hook->setQueryHook($qhDeclaration);
return true;
What's strange, it doesn't even work when I put constant value like
'modResource.id:=' => '9:numeric'
.
My resource tree is defined as:
- Home
- Story (simple hidden resource container)
- Events (ArticleContainer)
- Spots (ArticleContainer)
- Photoshoots (ArticleContainer)
- Others (ArticleContainer)