Export a SharePoint site as a Site Template (.stp file)

In SharePoint it’s easy to export your site as a site template and create new sites based on it.

The site template will save the structure of the site designed in SharePoint Designer, so other sites you create based on the template will have the same structure (optionally you can even include the content!).

Export a site as a site template using the SharePoint interface.

  • On the specific site you would like to save as a template go to Site Actions → Site Settings;
  • Go to the Look and Feel menu and click Save site as template;
  • The SharePoints administration page “Save Site as Template” will open up from which you can save your site as a template file (.stp). You also have the option to include content which will include the contents of all lists and document libraries in the selected site.

Export a site as a site template using SharePoint Designer

  • Open the specific site that you would like to save as a template;
  • File → Export → Sharepoint Site Template;
  • The SharePoints administration page “Save Site as Template” will open up from which you can save your site as a template file (.stp). You also have the option to include content which will include the contents of all lists and document libraries in the selected site.

 

Save site as Template

Save site as Template

A few words about included content

Include content in your template if you want new Web sites created from this template to include the contents of all lists and document libraries in this Web site. Some customizations, such as custom workflows, are present in the template only if you choose to include content. Including content can increase the size of your template. There is a maximum file size of 10MB  for the template file.

Caution: Item security is not maintained in a template. If you have private content in this Web site, enabling this option is not recommended.

To learn how to upload and use the template file (.stp),  please read our article: Upload and use a site template (.stp) in SharePoint

Upload and use a site template (.stp) in SharePoint

Log on to SharePoint as an administrator to the site collection where you want to upload the template. Make sure to browse to the top level site of the site collection.

  • Click the Site Actions button → Site Settings → Modify All Site Settings

ModifyAllSiteSettings

  • Go to the Galleries section and select Site templates.

SIteTemplateGalleryUpload

  • On the Site Template Gallery page, select ‘Upload’ or ‘Upload multiple documents’
  • On the Upload Template: Site Template Gallery page, browse to the .stp file and click OK to upload the file.

UploadTemplate

  • You have now succesfully uploaded the file and are ready to use it.

Creating a new site based on the uploaded Template

  • Log on to SharePoint as an administrator.
  • Go to the site under which you want to create a site based on the newly uploaded template.
  • Go to Site Actions → Create Site

Create Site

  • On the next page “New SharePoint Site” fill in the field and pick the new template from the ‘Select a template’ section.
  • You will find your template under the tab ‘Custom
  • Click Create, and now a site based on the uploaded template will be created.

 

To learn how to export a SharePoint site as a template file (.stp),  please read our article Export a SharePoint site as a Site Template (.stp file)

The paste text dialog box

The Paste Text dialog box  in SharePoint Designer contains a few formatting options that allow you to paste text from other sources into your page.

In this article we’ll explain what each option does.

  • Plain text ~ Pastes all text but replaces line breaks with spaces.
  • One <pre> formatted paragraph ~ Pastes all text within a single preformatted text <pre> tag
  • Many <pre> formatted paragraphs ~ Pastes each paragraph into seperate <pre> tags.
  • Normal paragraphs with line breaks ~ Pastes all text within a single paragraph tag.
  • Normal paragraphs without line breaks ~ Pastes each paragraph into a seperate paragraph tag.

Paste or Paste Text

  • The paste option copies text along with the markup and styles (BAD!).
  • The Paste Text option launches the Paste Text dialog box, which pastes it without any markup an styles (GOOD!).

Always try to use the Paste Text to prevent getting garbage markup styles polute your webpages which can be a tedious job to clean up.

You can find the Paste Text option in SharePoint Design by clicking Edit → Paste Text.