SharePoint branding changes SiteLogoUrl by theme, there is no theme related application

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.

+3
source share
2

.

( ). , , ?

, SPWeb - . , - .

Alternate CSS . SPWeb (AlternateCssURL).

+1

. FeatureActivated/FeatureDeactivating - , .

, , ? sharepoint , . CSS , .net .

, SiteLogoUrl, ( , ).

, , , : " SharePoint".

,

.

0

Source: https://habr.com/ru/post/1706355/


All Articles