Applies To: SharePoint Online Office 365 operated by 21Vianet - Small Business Admin Office 365 operated by 21Vianet - Admin SharePoint Server 2016 SharePoint Online operated by 21Vianet SharePoint operated by 21Vianet - Admin Center After you have customized your SharePoint site so that it contains the libraries, lists, views, workflows, logos, and other elements that you require for your business, you may want to create a template of that site for reuse. A site template is like a blueprint for site. Creating a site template allows you to capture your customizations, so that they can be quickly applied to other SharePoint environments and even use the template as the basis for a business solution. Users can create new sites based on the template or you can hand it off for additional development in Visual Studio. You're probably familiar with the default site templates, such as Team Site, Project Site, and Communities Site. SharePoint site templates are prebuilt definitions designed around a particular business need. You can use these templates as they are to create your own SharePoint site, and then customize the site as much as you want. For more information, see In addition to these default site templates, you can also create your own site template based on a site you've created and customized. A custom site template is a way to package site features and customizations that you can add to a solutions gallery. Custom site templates are often used to deploy solutions in other sites or to provide site consistency within your organization. For example, you may have a standard policy on project management, and so you require the use of a custom project site template for all new projects. A custom site template is a powerful feature that allows you to create a solution and then share that solution with your peers, the broader organization, or outside organizations. You can also package the site into a Web Solution Package file (.wsp) and open it in another environment or application such as Visual Studio and further customize it there. Turning your customized site or business solution into a template is an extremely useful and very powerful capability. Once you start to package your solution as a template, you begin to realize the potential of SharePoint as a platform for business applications. Site templates make all of this possible. Overview The following instructions are for replacing the current default WSS Site Template with a newly created template. As with any set of instructions that. When you save a SharePoint site as a template, you're saving the overall framework of the site — its lists and libraries, views and forms, and workflows. In addition to these components, you can also include the contents of the site in the template; for example, the documents stored in the document libraries or data in the lists. This could be useful to provide sample content for users to get started with. But consider that including content could also increase the size of your template beyond the 50 MB site template limit. 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.wsp file, take it on the road, and deploy it in another SharePoint environment. All of your site customization is conveniently stored in one file. Jun 14, 2012 Creating a new site collection from a custom template (.wsp). Creating the site. Webs WHERE Title='Your Site'. You can use SharePoint Object Model find site template of a SharePoint site. Just query SPWeb.WebTemplateId. SharePoint 2010 - find template used create site: In SharePoint 2010, You can get the list of site templates by using a PowerShell Cmd-let: Get-SPWebTemplate. If you are trying to save a site as a template in WSS v3 or MOSS 2007 you will find that the link “Save site as template” is only available under Look and Feel at the Top Level of the site collection. Doesn't really. I created a site template (after applying the hotfix) and restored the same to a newly created site. • 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. Work with a site template The basic steps to working with a site template are as follows. 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. In this case, it’s a good idea to modify the workflow association to a use new workflow history list and then delete the original workflow history list before creating the site template. • Click OK to save the template. If all of the components on the site are valid, the template is created, and you see a message that states 'Operation Completed Successfully.' • Do one of the following: • To return to your site, click OK. • To go directly to the site template, click Solutions Gallery. When you download your site template, you create a.wsp file that is portable and easy to use in other site collections. • Navigate to the top-level site of your site collection. • Click Settings and then click Site Settings. • 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. Then, on the Activate Solution Confirmation screen, in the Commands group, click Activate. • Click its name in the solutions gallery, and click Save. • 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.wsp file to the same site collection or different site collections in the same or different SharePoint environments. • Navigate to the top-level site of your site collection. • Click Settings and then click Site Settings. • In the Web Designer Galleries section, click Solutions. • In the Commands group, click Upload or Upload Solution, and then in the Add a Document or Add a Solution dialog box, click Browse. • In the Choose File to Upload dialog box, locate the file, select it, click Open, and then click OK. • 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: Create a subsite • Click Settings and then click Site Settings. • Click Sites and workspaces under Site Administration. • Click Create in the Sites and Workspaces dialog. • In the New SharePoint Site dialog, enter the Title for the page, a Description, and the URL name for users to use to get to your site. • Under the Template Selection, click the Custom tab, and click your saved template. • Select the User Permissions and Navigation options you'd prefer. • When you're done, click Create. 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. • Navigate to your Solution Gallery. • Click Settings, Site Settings, and, then under the Web Designer Galleries section, click Solutions. • Select a site template, and then do one of the following: • 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. Notes: • 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. To avoid this, make sure to uniquely name the site template you are uploading. However, you will not be able to activate both solutions at the same time, and will need to deactivate the original if you wish to use the newly uploaded site template for site creation. Troubleshoot a custom site template The following sections can help you resolve problems when you are working with a custom site template. Note: The Save site as template option isn't available in SharePoint Online or with SharePoint Server 2013. For more info, see the knowledge base article. The site template is based on a site type that is not available in the current business plan The availability of site templates depends on the features set up by your administrator, whether you work with sites or site collections, and what plan you have for Office 365 or SharePoint Server. The following table summarizes the site type availability between different plans. For more on templates, see. Occasionally, you may need to dig deeper to unearth a problem with a site template. For example, you may have inherited the site template and do not know how it was created or what it contains. Under the covers, a.wsp file is a cabinet file (CAB), which is a file that contains other files. This cab file contains a manifest file that defines elements in your site. If you are curious about the content, do the following: • Copy the.wsp file. • Rename the file extension from.wsp to.cab. • Double-click the file, select all the files displayed, right-click the selection, click Extract, locate a folder in the Select a Destination dialog box, and then click Extract. You can now see the Manifest.xml, the folders referenced in the Manifest.xml, and all required elements, schemas, resources and feature files used to recreate the site. If you chose to include the contents of the site when you created the site template, you can also see the content, such as document library files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
April 2018
Categories |