// T3chNicaL.LEad

“If you don’t know where you’re going, you’re unlikely to end up there.” – Forrest Gump

How to Deploy a Theme with a SharePoint Solution September 5, 2008

Filed under: SharePoint — Lawrence Cawood @ 10:01 pm
Tags: , ,

I haven’t come across any recommended method of deploying a theme with a SharePoint solution, but here’s a suggestion that should work: Simply deploy all the theme files to their relevant location in 12\TEMPLATE\THEMES using the TemplateFiles element (ok, maybe this is the recommended way :) .

You’ll also need to deploy an updated copy of 12\TEMPLATE\LAYOUTS\1033\SPTHEMES.XML. I’m not sure if this would be supported as you’re overwriting a core SharePoint file in your deployment, but it’ll do the trick. You would have to modify this file manually anyway I suppose (although there’s the risk that your deployment could overwrite previous themes added manually in this file by someone else).

As far as I know, there’s also no out-the-box method of applying the theme automatically to a site. You could write a feature event receiver to do this though via the SharePoint API.

 

2 Responses to “How to Deploy a Theme with a SharePoint Solution”

  1. I mean this article specifically:

    STSDEV Theme Solution Generator
    http://solutionizing.net/2008/09/14/stsdev-theme-solution-generator/


Leave a Reply