June 14, 2007

MOSS: SmallSearchInputBox is not visible on master page

Problem:
Having done something, the search box is no longer visible on the master page although

<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox">
</SharePoint:DelegateControl >
</asp:ContentPlaceHolder>

does exist on the page and search control is visible in SharePoint Designer.

Thoughts:
There is a search.js in 1033 folder.

Solution:
Make sure that the ContentPlaceHolder in the master page has not visible=false.

Also check that your layout pages do not have empty Content tags with ContentPlaceHolderId value
PlaceHolderSearchArea. If you do, they will override the respective Content on the master page.

Thanks to Ivan Inyushin for teaching me the wonders of ContentPlaceHolders.

2 comments:

  1. If you have a MOSS in an diffentert language than english, could be that you don't have the search.js in your language folder.

    You have to copy from 1033 and insert into the language p.e 1036 if it is french

    ReplyDelete
  2. Thanks for the tip, this might indeed work in some cases, but in my specific case we have English version (1033).

    However, I will double check that this file exists next week when I get back to work.

    ReplyDelete