Up to this point, we still do not need a new home page for our definition of a SharePoint site. We have a theme that some of our customers will use depending on their SharePoint corporate branding.
I am currently modifying "SiteLogoUrl" in my "FeatureReceiver" in the "FeatureActivated" event using the following code.
public override void FeatureActivated(SPFeatureReceiverProperties properties) {
AddThemeToSpThemes(THEME_ID, THEME_NAME, THEME_DESC, THEME_IMAGE, THEME_IMAGE);
SPWeb site = properties.Feature.Parent as SPWeb;
if (site != null) {
site.AllowUnsafeUpdates = true;
site.SiteLogoUrl = site.Url + "images/thLogo.gif";
site.Update();
}
}
FeatureActivated is not the best event to launch, I would prefer the theme of the applied event, but I can not find it. Maybe I'm not doing it right.
source
share