Page 1 of 1

Site Search - Security and Exclusions

Posted: Tue Jan 29, 2019 4:14 pm
by Starb7
Hi Pablo and All

In the 'Site Search' tool, is it possible to:

1. Make the field 'search' on pressing enter (and so do away with the Search Button. Normal I would say just add an on-event to the field but that doesn't seem to be an option.
2. Exclude Pages - I would like to be able to exclude some pages from the search index - is that possible?
3. Security - as this will execute a Java Script, is there any way to validate the field values first, ie to stop injection, etc?

TIA

Re: Site Search - Security and Exclusions

Posted: Tue Jan 29, 2019 4:52 pm
by Pablo
1. The search field should also work without the button.
2. You can exclude pages from the search index in the Page Properties.
3. The search script runs at the browser side, so there is no security risk. No data will be send to the server.

Re: Site Search - Security and Exclusions

Posted: Tue Jan 29, 2019 5:19 pm
by Starb7
Great! It doesn't work for me on the 'enter' option, so suspect there's another button on the page taking the focus - will investigate. Cheers.