Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

[SOLVED] Hide assets from local site search results


2 Posts   1005 Views


21 August 2010 at 9:22am (Last edited: 22 August 2010 7:01am), Community Member, 42 Posts

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.


22 August 2010 at 7:00am Community Member, 42 Posts

I found the solution on the [url=]search tutorial page[/url]

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)