Customize search box in sharepoint 2007
Now, we learn how to customize the sharepoint search box
Search for the Content place holder PlaceHolderSearchArea
Add the property visible=”false” to the PlaceHolderSearchArea
As shown in below image:
Now, choose the place where you want to put the customized search box or write a new tag <td></td> below the PlaceHolderSearchArea closing </td> tag
Go to the menu Task Panes > Web parts (Select the Web parts, if is not already selected)
Select the Search Box web part form he Web part List, Click on Insert Selected Web part (which inserts the web part in to the area you have choosen)
Now, add the tag <DropDownModeEx xmlns=”urn:schemas-microsoft-com:SearchBoxEx”>HideScopeDD</DropDownModeEx> into the newly added Search Box web part
As shown in the below image:
Add one more tag in to the search box code, to display the default value (Enter keyword…) while the search box is empty<QueryPromptString xmlns=”urn:schemas-microsoft-com:SearchBoxEx”><b>Enter Keyword…</b></QueryPromptString>
As shown in the below image:
Comments
Comment from Tony Mann
Time October 7, 2010 at 5:04 pm
In SP 2010, can you change the property xml values so no text appears in the search box (i..e what value do I enter in the QueryPromptString?)
Pingback from SP/IPFS Links @03.13.2011 « Cave76
Time March 13, 2011 at 2:46 pm
[...] http://www.fivenumber.com/customize-search-box-in-sharepoint-2007/ [...]



Comment from Kuloh
Time September 4, 2010 at 11:22 am
You save my life. Thanks for the tutorial..