Icon explained    
Articles marked with this logo are 'subscriber' only articles. Click here to become a subscriber
Small Business Server articles and howto's    

Current Articles | Search

How to save a Site Template and use it on new websites
By Marina Roos :: 1 Comments :: :: SBS 2003, Sharepoint, Public articles
TERMS
This document and what comes with it are provided as-is with blunt warning: Use at your own risk, buyer beware. You break your system; you own the resolution as well. We have no liability for what you do, or can't do, or fail to do with this information. Your entire protection is to start over again with a protected backup, or from protected system. If you don't want to accept this idea, please don't use this document.
How to save a Site Template and use it on new websites
When a new website is created, you can choose a template from the Central Template Gallery. There are 8 templates to choose from. After choosing a template, you can not apply another template.

At this point you can just close the browser if you don’t see the template you would like to apply. The next time you open this new website, you will be offered the Template Selection again.

The Company website can be saved as a Site Template and when that template is added to the Central Template Gallery it can be applied to new websites. You can not use this template for a site in another language. This article will describe how to save a site template and how to add it to the Central Template Gallery.

Save a Site Template:

  1. On the Companyweb site, click Site Settings.
  2. In the Administration section, click Go to Site Administration.
  3. In the Management and Statistics section, click Save site as template.
  4. In the File name box, type the file name to use for the site template file.
  5. In the Template title box, type the title you want to use for the template in the site template gallery. (Tip: use the same name for the Template Title as the File name.)
  6. In the Template description box, type a description for the site template.
  7. To include the existing site content, select the Include content check box. (Tip: the links on the right side in the Companyweb (Information and Answers, Remote E-mail Access and Remote Server Management will not be included if you don’t select this box.)
  8. Click OK.

9. Click Site template gallery.

10. Right click the new template and choose “Save target as…” and choose a folder.

11. Click Save, then Close.

Add the template to the Central Template Gallery:

This will have to be done from the commandprompt.
Navigate to C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN and run the following command:

  • stsadm –o addtemplate –filename “x:\folder\filename.stp” –title “filename”

where “x:\folder\filename.stp” is the source you saved the site template to. If there are spaces in the filename, make sure you do add the double quotes.

When the operation has completed successfully, IIS must be restarted:

iisreset

With the command “stsadm –o enumtemplates” you get a list of templates that have been manually added to the Central Template Gallery. The language code is quite important, as you can only apply the same language template to a new (sub) site.

After closing the commandprompt, you can now open the browser and navigate to your new website. You will see the Template Selection dialog and can choose the new template:


Comments
By Gert Gremmen @ Tuesday, October 31, 2006 2:31 PM
Will the contents in f.a. shared documents and pictures be copied as well ????

You must be logged in to post a comment. You can login here