Forum
Search only in specific pages
Hello,
I am trying to get my search form to only search in my.domain.nl/nieuws.
$query = perch_get('q');
perch_content_search($query, array(
'count' => 5,
'from-path'=>'/nieuws',
));
This is the code on my searchresults.php page, but it is giving me results from all pages. It should be fairly easy, what am I doing wrong?
Mike
I can't see anything wrong. Can you show me the debug output for the search result?
That is searching for regions on pages beginning with
/nieuws
. Can you give an example of content from other pages that it's returning?