开发者

Logo for each site in site collection

开发者 https://www.devze.com 2023-03-16 22:12 出处:网络
I want to load different logo in each site in sa开发者_如何学编程me site collection. For now my logo tag exists in master page. Any idea ?You can do 2 things.

I want to load different logo in each site in sa开发者_如何学编程me site collection. For now my logo tag exists in master page. Any idea ?


You can do 2 things.

  1. You can replace the SharePoint:SiteLogoImage with your own.
  2. You can use Master.FindControl to find that control by doing the following

    var siteLogo = (SiteLogoImage)Page.Master.FindControl("ID of control goes here");

    siteLogo.LogoImageUrl = // Insert logo img url here


If you are using ASP Dot NET then we can have more than one master page, defining logo for each one. You can call you master page at run time according to your site opened!

Please would you specify Are you using ASP DOT NET or defining master page in another lange

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号