Hi Ajay,

I almost forgot. There's a feature on Codeplex that already does this I 
believe. If it doesn't get you all the way then it may at least prove to be a 
good starting point for your own.

Theme Changer and ThemeChangerStaple
This feature changes the site theme and alternate style sheet to those 
specified in the FEATURE.XML file.
http://features.codeplex.com/

They really need to get some more info up for each of these.

Regards,

Paul
Online Developer, ICT
CEO Sydney

From: [email protected] [mailto:[email protected]] On Behalf Of Ajay
Sent: Tuesday, 14 July 2009 8:53 AM
To: [email protected]
Subject: Re: Custom theme not inheriting on team site

Thanks a lot guys.. will look into this .
On Mon, Jul 13, 2009 at 5:28 PM, Sezai Komur 
<[email protected]<mailto:[email protected]>> wrote:
Agreed, go with feature stapling. Even though that blog talks about My Sites 
you can use the same concept for automatically applying a theme, master page or 
custom css url for newly created sites of any type.

You need two features.
1) Create a Feature Stapling Feature which is a Feature that tells SharePoint 
to automatically activate another feature whenever a site of a specific type is 
created. (similar to http://www.vanolstweb.nl/blog/images/designstaplingxml.jpg)
2) Create a Feature to change the theme, master page or css url, when the 
feature is activated (similar to 
http://www.vanolstweb.nl/blog/images/featureactivated.jpg).

Sezai

On Mon, Jul 13, 2009 at 11:15 AM, Paul Culmsee 
<[email protected]<mailto:[email protected]>> wrote:

For me, a stapled feature to an OOTB def for auto-theming is the lesser evil or 
a complete custom site def. I know someone who wrote a feature to do this but 
I'm not sure if he released it. Ping me privately if it is of interest and I 
will ask my friend.



(In fact this example was how I learned how feature stapling worked)



From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On Behalf Of Paul Noone
Sent: Monday, 13 July 2009 10:50 AM
To: [email protected]<mailto:[email protected]>

Subject: RE: Custom theme not inheriting on team site



Create a site definition feature to provide master page and CSS overrides or 
use feature stapling to apply the theme.



This link describes how to affect look-and-feel for new and existing sites 
using a feature. Themes are just whack, I'm afraid. :)



http://www.sharepointblogs.com/mirjam/archive/2008/02/22/customizing-the-my-site-look-and-feel.aspx



Sadly there is no SiteCreated event you can harness, that I am aware of, 
otherwise a simple event receiver could be written?



ight want to join: http://www.codify.com/lists

________________________________
Support procedure: https://www.codify.com/lists/support
List address: [email protected]<mailto:[email protected]>
Subscribe: [email protected]<mailto:[email protected]>
Unsubscribe: [email protected]<mailto:[email protected]>
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists

________________________________
Support procedure: https://www.codify.com/lists/support
List address: [email protected]<mailto:[email protected]>
Subscribe: [email protected]<mailto:[email protected]>
Unsubscribe: [email protected]<mailto:[email protected]>
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists

________________________________
Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists
--------------------------------------------------------------------------------
Support procedure: http://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists

Reply via email to