Navigation is missing in Search Center SharePoint 2010
It’s really annoying to use the SharePoint 2010 Search Center without the common Navigation panel.
By default a search center look like this:
Search center uses the minimal.master by default. It’s quite easy to enhance the minimal.master to display the navigation panel. The following code section has to be inserted into the minimal.master at the described position.
<!– Existing content of minimal.master –><h3>
<asp:ContentPlaceHolder id=”PlaceHolderPageSubTitle” runat=”server” />
</h3>
</div>
</div>
<!– Existing content of minimal.master –>
<!– Begin of Insert –>
<div id=”s4-topheader2″>
<a name=”startNavigation”></a>
<div>
<asp:ContentPlaceHolder ID=”PlaceHolderTopNavBar” runat=”server”>
<asp:ContentPlaceHolder ID=”PlaceHolderHorizontalNav” runat=”server”>
<SharePoint:AspMenu ID=”TopNavigationMenuV4″ Runat=”server” EnableViewState=”false”
DataSourceID=”topSiteMap” AccessKey=”<%$Resources:wss,navigation_accesskey%>”
UseSimpleRendering=”true” UseSeparateCss=”false” Orientation=”Horizontal” StaticDisplayLevels=”2″
MaximumDynamicDisplayLevels=”1″ SkipLinkText=”" CssClass=”s4-tn” />
<SharePoint:DelegateControl runat=”server” ControlId=”TopNavigationDataSource” Id=”topNavigationDelegate”>
<template_controls>
<asp:SiteMapDataSource
ShowStartingNode=”False”
SiteMapProvider=”SPNavigationProvider”
id=”topSiteMap”
runat=”server”
StartingNodeUrl=”sid:1002″/>
</template_controls>
</SharePoint:DelegateControl>
</asp:ContentPlaceHolder>
</asp:ContentPlaceHolder>
</div>
</div>
<!–End of Insert –>
<!– Existing content of minimal.master –>
<div>
<asp:ContentPlaceHolder id=”PlaceHolderTitleBreadcrumb” runat=”server” />
</div>
<div id=”maincontent”>
<asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server” />
</div>
<!– Existing content of minimal.master –>
After the modification of the minimal.master the navigation panel will be displayed in the search center:
Related Posts
No related posts.
One Response to “Navigation is missing in Search Center SharePoint 2010”
Leave a Reply




[...] Originele uitwerking staat op : http://blog.hagenberg-software.at/2011/04/navigation-is-missing-in-search-center-sharepoint-2010/ [...]