Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a strange problem regarding the overriding of search delegate control in SharePoint 2007. The purpose of why i override it is to set drop down mode to show contextual scopes as default aka first.

So i created a feature which will be activated on scope = web. And in the control i set ShowDD_DefaultContextual, according to msdn it should show all scopes but the first that will be selected is most actual scope. So that is what i need.

But the problem is, I can't see in the drop down list the standard scopes like "all sites" and "people". The contextual scopes are selected as promised but lack of ootb search scopes is not accaptable for me.

Here is whole xml definition for the control:

  <Control Id="SmallSearchInputBox" Sequence="25" 
           ControlClass="Microsoft.SharePoint.Portal.WebControls.SearchBoxEx" 
           ControlAssembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">

    <Property Name="GoImageUrl">/_layouts/images/gosearch.gif</Property>
    <Property Name="GoImageUrlRTL">/_layouts/images/goRTL.gif</Property>
    <Property Name="GoImageActiveUrl">/_layouts/images/gosearch.gif</Property>
    <Property Name="GoImageActiveUrlRTL">/_layouts/images/goRTL.gif</Property>
    <Property Name="SearchResultPageURL">/_layouts/osssearchresults.aspx</Property>
    <Property Name="ScopeDisplayGroupName"></Property>
    <Property Name="FrameType">None</Property>
    <Property Name="UseSiteDefaults">true</Property>
    <Property Name="DropDownModeEx">ShowDD_DefaultContextual</Property>

  </Control>

Do I miss something?

Thanks in advance for the help.

share|improve this question
add comment

1 Answer

Ok, I found the solution:

This line from xml should have been deleted:

 <Property Name="ScopeDisplayGroupName"></Property> 

When i delete that line and redeploy, I receive the expected results. Hope this will help other people.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.