Using Save Site as Template with Publishing Sites – Part 1, Saving the Site and Importing the Solution to Visual Studio

The Save site as a template link is not available on the Site Settings page of a publishing site. However, you can still access the page by appending /_layouts/savetmpl.asx to your site’s base URL.

I usually complete the page as follows, but keep in mind that it doesn’t matter what you name the solution because the resulting file is just an intermediate step that gets thrown away.

Make sure you check Include Content to include the publishing pages!

Save the solution to your local machine and go through the initial steps to import the solution package into a new solution that I covered in Save Site As Template + Import SharePoint Solution Package == Love.

You need to import the modules for the page layout and the publishing page. The page layouts can be hard to find. They are usually, but not always, in a module named _catalogsmasterpage_FeaturesPublishingReources. You can ensure you select the right one by hovering over the Name; the tooltip lists the item’s contents.

The page is easier to find, it should be in a Module named Pages_. Once you have selected the two Modules, click Finish to complete the import.

The new solution should look something like the following. Leave it open because you will need it in the remaining steps.

Table of Contents

Using Save Site as Template with Publishing Sites – Introduction

Using Save Site as Template with Publishing Sites – Part 1, Saving the Site and Importing the Solution to Visual Studio

Using Save Site as Template with Publishing Sites – Part 2, Creating the New Custom Visual Studio Solution

Using Save Site as Template with Publishing Sites – Part 3, Fixing Up the Page Layout Module

Using Save Site as Template with Publishing Sites – Part 4, Fixing Up the Publishing Module

Using Save Site as Template with Publishing Sites – Conclusion

 

Author: Doug Ware