Removing contextual: This sites cope from simple search box
Posted by ken zheng on October 23, 2008
Microsoft Office SharePoint Server 2007 provides two categories of search scopes: Custom and Contextual.
The custom search scopes created via the search or site admin pages
Mark has posted a blog explain these 2 types.
If you want to remove the “This site” contextual scope all together, then this cannot be done using standard user interface. You need to create a new feature based on one of the existing ones. The sample below replaces the collaboration portal search box with a delegate without the “This site” contextual scopes.
Make a copy the existing feature OSearchEnhancedFeature (MOSS Enterprise ed.)
Change the sequence number to fit below 25, e.g.
3. Add the DropDownMode property
All you need to do now is to package the feature in solution and deploy it. You can do it manually, or use something like the WSPBuilder