How do you hide assets from the local system site search function? We're having PDF's show up that we don't want to and Secure Files module doesn't appear to do anything for this. Thanks for any help.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I found the solution on the search tutorial page
The solution:
"If you don't want any Files to be found add" to the page.php under mysite/code
public function results($data, $form)
{
$form->classesToSearch(array('SiteTree'));