I just joined a project that uses ModX. My first task is to implement site wide search. I am required to use advSearch. I am able to get a basic search working really well. One of the requirements is to add a side filter where users can filter the results by a TV.
Unfortunately the documentation for AdvSearch is no longer live, and the documentation at
http://rtfm.modx.com/extras/revo/advsearch/advsearch.advsearch isn't much help.
Can someone give me a simple example of how to do this?
I tried using a queryHook based on a question asked here, but it returns zero results. Here is the hook I wrote.
<?php
$andConditions = array(
'tv.assetFormatType:=' => 'contentType:request:all'
);
$qhDeclaration = array(
'qhVersion' => '1.0',
'andConditions' => $andConditions
);
$hook->setQueryHook($qhDeclaration);
return true;
Any help would be greatly appreciated.