Hey Folks,
I would like to do a filter expression in SS3 similar like:
'Title like '%".$_GET['search']."%' OR Content like '%".$_GET['search']."%'
I tried this at first:
$myfilter['Title:PartialMatch'] = $_GET['search'];
$myfilter['Content:PartialMatch'] = $_GET['search'];
NewsPage::get()->filter($myfilter);
But it seems that it uses the filter with and AND-expression.
What is the correct way to get a filter that looks if the seach-parameter is either in content OR (!) in the title?
Thanks in adcance.
sash