Ris
Ris

Reputation: 1164

Logo for each site in site collection

I want to load different logo in each site in same site collection. For now my logo tag exists in master page. Any idea ?

Upvotes: 0

Views: 526

Answers (2)

user557419
user557419

Reputation:

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

Upvotes: 2

Suleman Ahmad
Suleman Ahmad

Reputation: 2113

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

Upvotes: 1

Related Questions