I want to remove the "This site: " prefix from the OOTB contextual search scope. I realise I could hack this with JavaScript, however does anyone know of a supported way to achieve this?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
The only other option I could see is full customization. Deploy a feature that customize the search options so the contextual search is not displayed. Create custom search scopes, and custom search pages. You could additionally add custom search queries to "mimic' contextual search scopes. Package as a solution and deploy. I think JavaScript will get you where you want faster. You can package the the JavaScript up as a feature so it will scale with your sites. |
|||
|
|
|
For those interested, here is the very simple JavaScript that will achieve this for you. You will need to place this wherever your search box appears (e.g. on your masterpage) and you will need to have a reference to the jQuery plugin.
|
||||
|
|