discuss.answer
this are the avaliable options:
https://github.com/Bruno17/MIGX/blob/master/core/components/migx/model/migx/migx.class.php#L2079
For your case, you can create a snippet 'containsnot' like that:
return strpos($subject, $operand) === false) ? '1' : '0';
and call it like that:
&where=`{"context:snippet:containsnot":"hero-"}`
[ed. note: Bruno17 last edited this post 10 years, 6 months ago.]
Thanks so much Bruno ... that takes care of it. I'm amazed by how quickly you get back with everyone! It'd be nice to be of some help to you someday. Be well.
Bruno, would you consider adding LIKE and NOT LIKE to the available options for an old SQLer like me?
@gissirob
its not really a LIKE or NOT LIKE
It is just looping the array and searching by
strpos, if the field contains the searchterm or not.
If you need real SQL-searching, put the items in a custom-table and use MIGXdb and migxLoopCollection instaed.