Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 206123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:37:03+00:00 2026-05-11T17:37:03+00:00

Up to this point we have not yet needed a new masterpage for our

  • 0

Up to this point we have not yet needed a new masterpage for our SharePoint Site Definition. We have a theme that some of our customers will use depending on their corporate SharePoint branding.

Currently I change the ‘SiteLogoUrl’ in my ‘FeatureReceiver’ on 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 trigger on, I would prefer a theme applied event but I can’t seem to find one. Perhaps I am not approaching this correctly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:37:03+00:00Added an answer on May 11, 2026 at 5:37 pm

    Applying a theme doesn’t have an event.

    You may be doing this backwards (although the obvious way). How about having your feature receiver activate the theme programmatically, as well as setting your logo?

    Note you can store the currently applied theme in the SPWeb’s property bag – see this for an example, but storing the current master pages before changing them.

    It is worth considering using the Alternate CSS instead of Themes too. That can also be set on you SPWeb object (AlternateCssURL).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am very new to PhoneGap yet have not been able to get some
I really need help here. I'm desperate at this point. I have NSOperation that
This is what I have in mind: Can anyone point out some relevant resources?
I have this code that I want to make point-free; (\k t -> chr
I have found this code for reverse geocoding: var point = new GLatLng (lat[1],long[1]);
I have create a module which at this point does nothing but exist the
I have this code: public class Area { Texture2D point; Rectangle rect; SpriteBatch _sB;
This may have been answered before, and if so, point me to the answer.
I have an ggplot2 point chart created like this qplot(Index, Popularity ,data = data.slopeone.agg)
I have a string like this: TEST.DATA.Data.COR.Point,2;TEST.DATA.Data.COR.Point,5;TEST.DATA.Data.COR.Point,12;TEST.DATA.Data.COR.Point,12;TEST.DATA.Data.COR.WordTOFIND,18 I have a list of array with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.