tpreisse

Is there any way to edit the search input boxes that come standard with SharePoint in the header area. I do NOT want the first input that contains the "All Sites, This Site, People" drop down menu. I just want the input box where you enter the text to search the site after that initial drop down box.

Any ideas on how to accomplish this

I thank you in advance.

Tom




Re: SharePoint - Design and Customization I would like a smaller Search Input for the header of my site.

Mart1n0

Tom,

you can have a go on trying to exclude it from the masterpage.

Here is a link to the names created by Heather Solomon

http://www.heathersolomon.com/content/sp07cssreference.htm#Search

Good luck

Martijn






Re: SharePoint - Design and Customization I would like a smaller Search Input for the header of my site.

tpreisse

Thanks for the reply Martin,

But I am not trying to change the css values of the search box. I want to remove the first drop down box, with the All Sites, This Site and People selections, and have just the actual Search input box remaining in my header.

Does anyone have a fix for that.

I thank you in advance.

Tom






Re: SharePoint - Design and Customization I would like a smaller Search Input for the header of my site.

dhunter

Hi Tom,

Martijn was suggesting you hide the dropdown using CSS. You can add the following CSS to your masterpage or using the alternate stylesheet property under site settings > masterpages.

select.ms-sbscopes { display:none; }

This is a quick fix. The control is a Delegate control in WSS. The ideal solution would be to copy the SearchArea.ascx in the 12/Template/ControlTemplates/ folder. Remove the dropdown in the user control and any references to it. Create a feature with to define the delegate control for more information please see http://msdn2.microsoft.com/en-us/library/ms463169.aspx. The xml should look like:

<Element>
<Control Id="MySearchInputBox" Sequence="100"
Url="/templates/mysearchcontrol.ascx"/>
</Element>

The feature will need registering and activating for the current site.

You then will need to add to replace the following in the masterpage (this should be the default.master, but check first).

<SharePoint: DelegateControl runat="server" ControlId="MySearchInputBox"/>

with

<SharePoint: DelegateControl runat="server" ControlId="MySearchInputBox"/>

Hope this helps

Dave





Re: SharePoint - Design and Customization I would like a smaller Search Input for the header of my site.

Puneet Narula - MSFT

I am guessing you are using MOSS because you have custom scopes.

SearchBoxEx control has a property

DropdownModeEx which you can set to HideScopeDD enum value(In UI Scope Dropdown section ->Drop down mode->Do not show scope drop down).

Since you want to do this for the SearchBox in the chrome which is in master page, the easiest thing to do is instead of putting the delegate control in the PlaceHolderSearchArea content place holder there put the following

<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">

<SPSWCTongue TiedearchBoxEx id="SearchBox" runat="server"

GoImageUrl="/_layouts/images/gosearch.gif"

GoImageUrlRTL="/_layouts/images/gosearch.gif"

DropdownModeEx=HideScopeDD

FrameType="None"

SearchResultsPageUrl="/SearchCenter/Pages/result.aspx"/>
</asp:ContentPlaceHolder>

You may have to change the results page url based on what you have. Also for the complete list of properties on SearchBoxEx you can use the following link

http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.portal.webcontrols.searchboxex_members.aspx

You will have to register the SPSWC tag prefix using the following at the top of master page

<%@ Register Tagprefix="SPSWC"

Namespace="Microsoft.SharePoint.Portal.WebControls"

Assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>





Re: SharePoint - Design and Customization I would like a smaller Search Input for the header of my site.

Allen Feng

<SPSWCearchBoxEx id="SearchBox" runat="server"

what is can't see clearly





Re: SharePoint - Design and Customization I would like a smaller Search Input for the header of my site.

Darrin Bishop

The face is hiding a : and S.

Here is the same line with extra spaces between the : and the S to hopefully avoid having the dispay replaced as a face. Remember to remove the spaces when you use it.

<SPSWC: SearchBoxEx id="SearchBox" runat="server"