Wednesday, December 18, 2013

Show current Page location, Breadcrumb global navigation, Show parent sites

                     Show current Page location, 

                    Breadcrumb global navigation,

                                 Show parent sites.


Replace below code in v4.Master:
Before it take its backup and make it Check-Out and modify for safety.
Note: If you its needed, for each site you need to to be repeated.

-----------------------------------------------------------------------------------------
<asp:ContentPlaceHolder id="PlaceHolderSiteName" runat="server">
<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitle">
<SharePoint:ProjectProperty Property="Title" runat="server" />
</SharePoint:SPLinkButton>
</asp:ContentPlaceHolder>

-------------------------------------------WITH--------------------------------------------------------

<asp:SiteMapPath
     runat="server"
     SiteMapProviders="SPSiteMapProvider,SPXmlContentMapProvider"
     RenderCurrentNodeAsLink="false"
     NodeStyle-CssClass="breadcrumbNode"
     CurrentNodeStyle-CssClass="breadcrumbCurrentNode"
     RootNodeStyle-CssClass="breadcrumbRootNode"
     HideInteriorRootNodes="true"
     SkipLinkText=""/>

No comments:

Post a Comment