SharePoint 2007 - How to create a site template programmatically

752 views Asked by At

In my SharePoint 2007 project I have to use 3 site templates. Using these templates I create new sites programmatically. I also want to create the templates programmatically.

  1. Is that possible?
    If yes, I guess I have to use a SPSite object for creation.

  2. What should I do exactly?

1

There are 1 answers

0
Marek Grzenkowicz On

You can use the SPWeb.SaveAsTemplate method to save a SharePoint site as a site template solution in the Site Template Gallery.