Remember Me
forgot your password?

How Do I Save A Publishing Site As A Template?

Shai Petel, VP R&D, KWizCom Corporation

 

You may have noticed that the “Save site as template menu” under “Look and Feel” site settings category is missing.  This brings one to ask:

How do I get it back? And more importantly: Why was it removed?

In the following article I will answer these questions and give you tools to address this issue on your own.

Background

In WSS sites, when you go to site settings page, this is how your “Look and Feel” category looks:

Notice you have the “Save site as template” menu option there.

It is important to understand that everything in SharePoint 2007 is based on features. So – you would be correct to assume this menu option is also a feature:

Feature folder: C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12TEMPLATEFEATURESSiteSettings

Feature file: SiteSettings.xml

Definition:

    <CustomAction

        Id="SaveAsTemplate"

        GroupId="Customization"

        Location="Microsoft.SharePoint.SiteSettings"

        Rights="AddAndCustomizePages,BrowseDirectories,ManagePermissions,ManageSubwebs,ManageWeb,UseRemoteAPIs,ViewFormPages"

        Sequence="60"

        Title="$Resources:SiteSettings_SaveAsTemplate_Title;">

        <UrlAction

            Url="_layouts/savetmpl.aspx" />

    </CustomAction>

 

When you create a publishing portal site (internet facing or intra net collaboration portal) you will notice that among other changes, the “Look and Feel” site settings category has changed, a lot:

Notice, there is no longer the option to "save site as template".

So, keeping in mind that everything in SharePoint is controlled by features – think of a publishing site as a normal WSS sites that had some features activated in it (*this is not 100% accurate, but as it simplifies things we will say so, for the sake of the example).

Looking further in our Feature folder, you will easily find several feature folders that belong to the publishing site. One of these features calls you to hide the save as template menu from the site settings:

Feature folder: C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12TEMPLATEFEATURESPublishing

Feature file: PublishingSiteSettings.xml

Definition:

    <HideCustomAction

        Id="HideSaveAsTemplate"

        HideActionId="SaveAsTemplate"

        GroupId="Customization"

        Location="Microsoft.SharePoint.SiteSettings" />

 

Notice the use of the HideCustomAction tag, with the corresponding HideActionld “SaveAsTemplate”.

Why is the “Save site as template” menu option removed from publishing sites?

 

Many of my customers use publishing sites. A lot of them tried to use the save as template option (some using code, some using a feature like the one below) and we all came to the same conclusion:

Since publishing sites have pages in them and layouts that are all connected to a content type that is configured at the top level site of the site collection, and because these content types are not saved and moved within the site template STP file – the STP file not, as one would expect it to be, a true reflection of the original site.

This means that if you save a publishing site as template and use it in the same site collection, providing all site content types it uses remain unchanged, the site template will work properly.

The problem arises when you try to move the site template to a different site collection, or when you've changed or deleted some content types in your current site collection – this will result in unexpected behaviour (that from my experience is irritating but fixable, with some work).

So, if you want to use the site templates within the same site collection, or if you use only the out of the box content types (welcome and article) with no changes, you should have no difficulties.

 

How do I add the “Save site as template” option back to publishing sites?

 

Here is what you need to do to add this option back to your publishing site. It's very simple; it will take approximately five minutes of work!

Simply create, install and activate a feature that will bring this menu option back to life!

Create feature

Create a feature that re-register a “save as template” action to site settings. I said 5 minutes, right? So here is a feature ready to use - http://www.kwizcom.com/DownloadFile.asp?Id=1164 (it's my free gift to you!)

Save the folder inside the ZIP file, under your server’s features folder.

Install Feature

Run STSADM command:

“C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BINstsadm” -o installfeature -name AddSaveTemplateToPublishingSiteSettings –force

Activate Feature

After installation, you should have this new site collection feature:

Result

If you did everything correctly, your new publishing site settings “Look and Feel” section will appear like this:

You will now be able to "save site as template". Easy, huh?!

 

 

* There may be other side effects of saving a publishing site as template. This article is for the community information benefit only and will not hold KWizCom responsible to any issues caused by this. It is strongly recommended you test on a pre production environment before you use this tip in a production server.

KWizCom Corporation

The KWizCom team utilizes their experience and knowledge to give fresh insight on Microsoft's SharePoint and CRM Products and Technologies... Shai Petel, KWizCom's VP R&D,is ,a Microsoft Certified Trainer and Technology Specialist. He is also the main contributor on KWizComm's SharePoint and CRM blog.

Rate this Article: 0 / 5 stars - 0 vote(s)
Print Email Re-Publish

Add new Comment



Captcha

  • Latest Software Articles
  • More from KWizCom Corporation

Microsoft Dynamics GP: Recovering Failed Implementation Notes

By: Andrew Karasev | 04/01/2010
Your Microsoft Dynamics GP (Microsoft Great Plains, Great Plains Dynamics or Great Plains Accounting for DOS, Windows or Macintosh), not successful implementation story might be not unique. GP is mid-market Corporate ERP application, where industry expertise might be required, plus profound technical exposure for your chosen Dynamics GP Partner. Of course, if you are insisting on coming through quick Sales cycle, there is often a temptation to sell you Dynamics GP software license...

Main Approaches of PowerPoint to Video Solution

By: Adward | 04/01/2010
Main approaches of PowerPoint to video solution: use PowerPoint to video conversion software or use screen capture tool. Enjoy the benefits of PowerPoint to video solution

How to convert youtube video to MP4 for iPod

By: Jessy Brown | 04/01/2010
Is it possible to get YouTube videos on iPod? Well, it seems interesting, if the two are kind of connection, yet YouTube videos are all Flash videos played by a Flash Player, and iPod supports the videos in MP4!

Remember Isaac Newton, watch FLV videos on your iPod/iTouch

By: alex nikle | 04/01/2010
Today is Isaac Newton's 367th birthday. Let's watch videos of Isaac Newton's legendary life on iPod/iTouch easy and fast.

Examsoon Cisco 640-802 certification

By: aminalee | 04/01/2010
Examsoon known to be the best for providing the exam questions for the Cisco 640-802 certification and training . Our 640-802 expert’s team has designed and prepared the training kit for Cisco 640-802 certification.

Dell Support Creating Landmark In customer Satisfaction

By: Jas Devid | 04/01/2010
Dell is a customer centric organization, offering quality services for the diverse segment of users. In order to keep its customer satisfaction graph on the peek, Dell has collaborated with reputed outsourcing organizations. These support firms are working on 24/7 basis to meet the expectation of the users.

How to watch DVD movies and videos on PS3?

By: Herb368 | 04/01/2010
With a larger 250GB of hard disk drive storage for more games, movies, music, videos and photos, Sony’s new PlayStation 3 is an ideal solution for ditital entertainment. This article will share you an easy to play DVD movies and videos on PS3.

How do Labels organize you with countless things?

By: Janett Parker | 04/01/2010
Labels are those tags that contain the name or any specific information on the object. They are the stickers either used for identification purpose or for promotional reason. Proper use of labels enables you to organize yourself at home, school, college or office. A person can design stickers attractively for identification purposes.

How do I tell what the next list item ID is?

By: KWizCom Corporation | 09/08/2009 | Software
Roi Kolbinger, SharePoint Consultant for KWizCom Professional Services explains how to discover what the ID of the next list item is.

How do I duplicate a list item without code?

By: KWizCom Corporation | 16/07/2009 | Software
Roi Kolbringer, SharePoint Consultant for KWizCom explains how to duplicate a list item without code.

Radio Button Custom Field Choice – Going from Vertical to Horizontal with Java Script

By: KWizCom Corporation | 23/06/2009 | Software
Roi Kolbringer of KWizCom Professional Services shows readers how to use JavaScript to take radio button custom field choices from the norm in MOSS – vertical, to horizontal.

HC Solutions joins the KWizCom Partner Network

By: KWizCom Corporation | 02/06/2009 | Computers
HC Solutions, one of the leading SharePoint Solution providers in Austria, recently joined the global KwizCom Partners Network.

KWizCom Products Are Now Compliant with Web Content Accessibility Guidelines (WCAG)

By: KWizCom Corporation | 07/05/2009 | Software
KWizCom is proud to announce that all new releases of KWizCom's SharePoint and Dynamics CRM add-ons are compliant with the Web Content Accessibility Standard (WCAG). KWizCom's VP Sales & Marketing Nimrod Geva says: "Each new product we release will be upgraded to ensure that it is accessible to everyone. We want all members of the community to be able to fully realize the potential of KWizCom solutions. Now the disabled will be able to benefit as well!"

SharePoint Survey Plus version 2.1.00 - new release by KWizCom

By: KWizCom Corporation | 30/04/2009 | Software
KWizCom's latest release of Survey Plus version 2.1.00 brings organizations new, revenue saving benefits.

How to skip SharePoint spell check for an input control

By: KWizCom Corporation | 10/04/2009 | Computers
KWizCom's VP R&D Shai Petel makes complex SharePoint issues – simple. Here he explains how to skip SharePoint spell check for an input control Shai Petel is a Microsoft Certified Trainer and Technology Specialist. He is also the main contributor on the KwizCom SharePoint CRM blog

Spexception: Trying To Use An Spweb Object That Has Been Closed Or Disposed And Is No Longer Valid

By: KWizCom Corporation | 15/03/2009 | Software
Kwizcom's Vp R&d, Shai Petel Explains How to Handle a Baffling Error Familiar to Most Sharepoint Developers.

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.25, 1, w2)