Most of the features in a site are included and supported by the template. However, there are several features that are not supported. Supported Lists, libraries, external lists, data source connections, list views and data views, custom forms, workflows, content types, custom actions, navigation, site pages, master pages, modules, and web templates.
Unsupported Customized permissions, running workflow instances, list item version history, workflow tasks associated with running workflows, people or group field values, taxonomy field values, publishing sites and pages, and stapled features. When you create a site template, information about site features and content types is also saved. When you use the site template in a different site collection, those features must be available and activated for the site template to work.
Problems can arise when moving between site templates from different SharePoint versions. Certain features and content types may not even be available depending on the SKU and configuration. Saving a site as a template is a powerful feature because it offers so many uses of custom sites. Here are the immediate benefits you get from saving a site as a template:. Deploy solutions immediately Save and activate the template in the solutions gallery and let other employees create new sites from this template.
They can select it, and then create a new site from it, which will inherit the components of the site, its structure, workflows, and more. In short, just save the site as a template, activate it, and off you go.
Portability In addition to deploying a custom solution in your environment, you can download the. All of your site customization is conveniently stored in one file. Extensibility As a Web Solution Package, you can open your customized site in Visual Studio, perform additional development customization to the template, and then deploy it to SharePoint.
As a result, site development can go through a solution life cycle develop, stage, and put into production. As you begin to create custom sites in SharePoint, you'll discover even more benefits to turning your site into a solution that can be made portable across the organization.
When you save a site template, you create a Web Solution Package file. Only the current site is saved; not any subsites below the site.
Click Settings and then click Site Settings. In the Site Actions section, click Save site as a template. Note: The Save site as a template option may not be available in all situations. For more information, see the section Troubleshoot a custom site template below. Specify a name and description for the template in the Template name and Template description boxes. To include the content of the site in the site template, select the Include Content check box.
The limit is 50 MB and cannot be changed. Important: Before creating a site template that includes content, check the workflow history list for the site. If there are thousands of items in the list, it may take a long time to create the site template or you may exceed the limit of 50 MB. If all of the components on the site are valid, the template is created, and you see a message that states "Operation Completed Successfully.
When you download your site template, you create a. In the Web Designer Galleries section, click Solutions. If it's necessary to activate the solution, select it, and in the Commands group, click Activate.
In the Save As dialog box, browse to the location where you want to save the solution, click Save , and then click Close. You can upload a. To activate the solution, on the Activate Solution confirmation screen, in the Commands group, click Activate.
After you create a site template and confirm it is activated, you can create a site based on the template. There are several ways to create a new site or subsite. You can use the SharePoint Designer or create a subsite from an existing site. Follow these steps to create a simple subsite in SharePoint using your saved site template:.
Select the User Permissions and Navigation options you'd prefer. You can control when a site template appears in the Create dialog box or its resource usage by activating and deactivating site templates in the Solution Gallery. Activate Makes the site template available for use when users create new sites through the Create dialog. Deactivate Removes the site template from the Create dialog box. A deactivated site template is unavailable for site creation and can be deleted.
Delete Removes the site template from the Solution Gallery, but moves it into to the Recycle Bin for approximately 90 days by default before the Recycle bin is emptied. This is helpful if you later decide to restore it.
If you need to delete a site template, you must deactivate it first. It is important to monitor the growth of the Solutions Gallery.
Each entry has a resource usage number assigned to it. Solutions can consume resources, and for that reason they may be temporarily disabled if resource usage exceeds quota. If you upload a site template to a Solutions Gallery, and the original site template is currently deactivated, you can potentially overwrite the original site template.
But in the site templates are saved into the solution store SPSite. Improve this question. Add a comment. Active Oldest Votes. AllowUnsafeUpdates; parentSite. Add name, name, name, , templateName, false, false ; newSite. Update ; parentSite. Improve this answer. Add TextBox1.
Text, TextBox1. Equals solutionName, StringComparison. Anders Rask Rainbow Rainbow 29 2 2 bronze badges. This looks like another question rather than an answer to the original question. If you need more information try posting a new question with the details. Hugh Wood 6, 1 1 gold badge 24 24 silver badges 43 43 bronze badges.
Add wci ; ctx. For more information, see the following procedures. In Solution Explorer , under the Web template node, there is a subfolder that contains an Elements. Open this file. Edit the WebTemplate child element of the Elements tag as needed. The Onet. Open the Onet.
Edit the Onet. Editing this file is basically the same as editing an Onet. But note these differences:. The Project element in a web template's Onet. The BaseTemplateID attribute and the BaseTemplateName attribute of the WebTemplate element identify the site definition from which the web template is ultimately derived.
Some of the attributes of the WebTemplate element have the same name as attributes of the Project element. Use the attributes in the WebTemplate element.
0コメント