Reading Time: 2 minutes

Save site as template” link is only available under the Look and Feel menu of Site Settings at the Top Level of the site collection in WSS v3/MOSS 2007.

How to Create a Custom Feature Click here

Here i am Creating a Feature for Save a Site as Site template.

Create Custom feature for “Save Site as template”.

1. Create a Feature.xml and Elements.xml under C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12TEMPLATEFEATURES

Create a Folder called Ex: “SaveSiteAsTemplate”

Note the Scope attribute in the Feature element of Feature.xml.  Scope can be set to either Farm, WebApplication, Site or Web.  Also notice that the ElementManifest element points to Elements.xml.

Setting the Location of the CustomAction to Microsoft.SharePoint.Settings and the GroupId to Customization is what decides where the link will be render in the UI.

Next, install the feature into WSS v3 by using the stsadm tool.  Stsadm.exe is located in

C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN

on your WSS / MOSS server.

Before Install

Install the Feature

Open command prompt and install the Feature its located in C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN

stsadm -o installfeature -name SaveSiteAsTemplate

Finally, activate the new feature on your WSS Site by going to Site Settings > Site Features and clicking the Activate button for the new Save Site As Template feature

Once Click Activate , the New Feature Save Site as Template is activated, see below image

Use this “Save Site as template” link under “Look and Feel” create an sub-site as site Template.

Communities Tagged : Technology
Tagged: SiteFeature