Save site as a template link missing

For saving site as a template, we have to way

  1. Add URL in site url “_layouts/savetmpl.aspx” like

http://kkdevmachineportno:youristeportno /_layouts/savetmpl.aspx

  1. Create a feature manually and install and activate it at web or farm level scope

A new creating custom feature could enable site administrators to add a ‘Save site as template’ link to the Site Settings page of any WSS v3 site.

Give name of your feature directory as SaveSiteAsTemplate.

The SaveSiteAsTemplate feature will consist of a Feature.xml and an Elements.xml file. Feature.xml declares the Feature itself, and Elements.xml further defines the CustomAction for the Look and Feel menu on a Site Settings page. To get started, create a folder named SaveSiteAsTemplate below the Features folder located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES on your WSS v3 server. Create Feature.xml and Elements.xml from the code below and place each file in the SaveSiteAsTemplate folder you just created.

Feature.xml

<?xml version=”1.0″ encoding=”utf-8″ ?>

<Feature

Title=”Save Site As Template”

Description=”Adds a ‘Save Site As Template’ link to the Look and Feel menu in Site Settings.”

Version=”1.0.0.0″

Scope=”Web”

Hidden=”FALSE”

xmlns=”http://schemas.microsoft.com/sharepoint/” >

<ElementManifests>

<ElementManifest Location=”Elements.xml” />

</ElementManifests>

</Feature>

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.

Elements.xml

<?xml version=”1.0″ encoding=”utf-8″ ?>

<Elements xmlns=”http://schemas.microsoft.com/sharepoint/”>

<CustomAction

Id=”SPSolutions.SaveSiteAsTemplate”

GroupId=”Customization”

Location=”Microsoft.SharePoint.SiteSettings”

Sequence=”1000″

Title=”Save site as template”>

<UrlAction Url=”_layouts/savetmpl.aspx”/>

</CustomAction>

</Elements>

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 Files\Common Files\Microsoft Shared\web server extensions\12\BIN on your WSS v3 server.

stsadm -o installfeature -name SaveSiteAsTemplate

Activate the new feature SaveSiteAsTemplate on your WSS Site by going to Site Settings Page Site Features and clicking the Activate button for the new Save Site as Template feature.

About Krishana Kumar

Krishana Kumar is SharePoint Architect/Trainer having Architecture experience with high volumes at Enterprise level and global scale - creation of highly scalable solutions with global user base and geographically distributed architectural components. Good knowledge of SharePoint best practices and governance models. I hold Two Master degree in Computer Science with over 11 years of experience working on Microsoft Technologies specially SharePoint, Project, .NET and other Information Worker Technologies. Having good exposer in Client side scripting Angular.js, backbone and Node. I am currently responsible for SharePoint Infrastructure set up and leading teams in various medium and large scale projects, architecting, designing & installing SharePoint farms, developing custom components,, and providing advanced SharePoint administration and development training to teams and customers. I regularly speaks in various SharePoint User Groups and other Events. I have MCSA Windows Azure, MCSA Office 365, MCSE & MCSD SharePoint 2013, Microsoft Certified Developer (MCD) and holds MCPD, MCTIP and MCTS for SharePoint 2010, MCTS MOSS 2007 & WSS 3.0, MCPD, MCITP (EPM 2010 & 2007) and MCSD .NET.
This entry was posted in General Interest. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *