Forum

Thread tagged as: Question

Remove regions from search

I've got a site which I'll be adding a search to... but only for blog posts. The site has a lot of regions (over 150). Is there a way to uncheck the Include in Search Results in one go for all page content?

Wayne Hooper

Wayne Hooper 6 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Not in one go no.

Ok, thanks. Thought that might be the case...

Just another thought on this... is it possible to restrict the search to just the blog app?

Wayne Hooper said:

Just another thought on this... is it possible to restrict the search to just the blog app?

It's possible, just include the from-path option within the array. There is some documentation showing an example at the bottom of this page - https://docs.grabaperch.com/docs/page-functions/

Thanks Mark. I hadn't thought of doing it that way. Specifying the folder works great.