Search This Blog

Friday, November 6, 2015

When click subsite logo to redirect to root site in Sharepoint site


In this post, site logo change to root site

1.Open you master page

For this generte site logo in Snippet Gallery

2.Find the text SharePoint:SPSimpleSiteLink
<!--MS:<SharePoint:SPSimpleSiteLink runat="server" CssClass="ms-siteicon-a" ID="x7917ecc8c38eab54c8c8d4bd69f58e33">-->
... 
<!--ME:</SharePoint:SPSimpleSiteLink>-->

3.Replace the text


<!--MS:<SharePoint:SPLinkButton runat="server" NavigateUrl="~sitecollection/" CssClass="ms-siteicon-a" ID="x7917ecc8c38d4bd69f5afkaf932523">-->
...

<!--ME:</SharePoint:SPLinkButton>-->


4.For site collection redirect option, Add the attribute NavigateUrl to this tag and set it value to "~sitecollection"
4.For site current site redirect option, Add the attribute NavigateUrl to this tag and set it value to "~site"

NavigateUrl="~sitecollection/"
NavigateUrl="~site/"


No comments:

Post a Comment