I'm trying to display only search results with a certain value in a TV. This is a checkbox tv for categories. I only want to search in resources with category 'books'. I don't want to set the category with a filter, it should just be a fixed value.
In the query hook, I have:
$andConditions = array(
'tv.category:like' => '%'.'books'.'%'
);
But it's not working. How can I make this work? Thanks for any help!
MODX Revo 2.2.5
AdvSearch 1.0.0