0

I currently try to set logo image in the Site of SharePoint Provisioning a WebTemplate.

I want to know if is exists a way to change logo without using code and by using some feature of Onet.xml

  • You mean to create a feature to change the site Logo? – Venkat Konjeti Jun 12 '17 at 17:26
  • Yes! :-) helpme – Andres Williams Jun 12 '17 at 19:04
1

If you want to set the site logo on feature activated you need to add an event receiver to the feature.

Here is a sample code to update logo on feature activated.

public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
    SPWeb web = (SPWeb) properties.Feature.Parent;      
    web.SiteLogoUrl = "" ; //set your path
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.