![]() ![]() ![]() Site Templates in SharePoint 2010. Comments (23)| Share. There are still Site Template in SharePoint 2010, but they're no longer.STP files. Instead, they're packaged in.WSP files just like web parts and features. No longer is there a 'Site Template Gallery', instead there is a 'Solutions Gallery'. Sep 11, 2013 how to delete custom site templates(solutions) still shows afert remove the solution in SharePoint 2010. Use PowerShell to Remove an Orphaned Custom Site Template from SharePoint 2010. Posted by David Wise. A situation cropped up today where a custom Site Template was created by saving a site as a template which was then used and subsequently deactivated and then deleted. Is it possible to change (modify) Custom Site Template name? I'm using SharePoint 2010. 2010 site-template custom. Delete lines from a text file that match. Before we start creating a custom Web template, I think it’s important to understand do we really need to create one? Even though web templates are easy to create and maintain as compared to site definitions, I would not recommend web templates simply because of the fact that they gets stored in content database. Thus, there is always an extra round trip to the database server which is not a good idea for high performance sites. My personal choice is not to use custom webtemplate or custom site definition, just go with Microsoft recommendation i.e. To construct Microsoft SharePoint Foundation solutions as one or more features and apply all the customizations to your site through features. These features can be given the job to customize the look and feel of site by applying custom master page, custom style sheets etc. Staple these features, by using Feature Stapling, with any out of the box site definition (such as Team site, Blank site etc) whichever fits closer to your business needs. Please see my other blog about. However, if a custom site type makes the most sense for your solution, then you can follow the steps below to create one. 1) Create a SharePoint site using any OOB site definition. ![]() Customize the look and feel of site using browser or sharepoint designer and save the site as Site template by going to ‘Site Actions ->Save site as template’. This will save your site template as wsp file in Solutions gallery. Import wsp file somewhere in the file system. 2) Open Visual studio and create a new project of type ‘Import Solution Solution Package’. This project will allow to import wsp file into visual studio project. During project creation, you will be prompted to choose wsp file. Just browse to the path where wsp file is downloaded and click ‘OK’. ![]() 3) In the visual studio project, look for onet.xml under ‘WebTemplates’ folder in the folder hierarchy. Copy it somewhere and close this project. 4) Now, Open your main sharepoint solution in Visual studio. Add new item of type ‘Empty Element’. In its Elements.xml file, add the code below – Please note that values of BaseTemplateId, BaseTemplateName and Base ConfigurationID should be the same as defined in the onet.xml of OOB site definition which was used to create the site which was saved as site template. In this example, my base site definition was Team site(STS#0), thus BaseTemplateName is ‘STS’ and BaseConfigurationID is ‘0’. 5) Copy the Onet.xml ( copied in step 3 above) in the same folder/level of ‘Elements.xml’. From this Onet.xml, you can remove all the enteries under “” and “” xml elements. Activation of these OOB features will be taken care by the base site definition. Instead you can add you own custom features under this section. 6) Finally, In SharePoint solution add a new farm scoped feature and associate it with the ‘Empty element’ just created above. Please note that Web Templates can only be deployed using farm scoped features. Install and deploy your solution. Open sharepoint Central Administration. Go to Application Management -> Create Site Collections. Under ‘Template Selection’ section, you should see your custom web template among other OOB site definitions/templates. Hi Team, I have created one meeting portal. Add one Task list & certain basic changes. Now, I save entire site as a Template using Site Settings > Site Action > Save site as Template. Now using that template i created few more sites. And suddenly i realized to add few more change in the the portal. So, i delete old saved template and make the changes in meeting portal & save that as a template with the same name (before that i remove old one so, there is no name conflicting occur) Now, All well. But when i go to create new site using custom template, I found both the name now i don't know which should i use and which should retired. Even don't know why it comes under that list while i have removed that from solution gallery (I have checked under Site Settings > Galleries > Solutions, there is one only) Moreover I confused so, i removed the old one from recycle-bin. Still that is the same issue. I checked at the location zywfesp1 C$ Program Files Common Files Microsoft Shared Web Server Extensions 14 TEMPLATE 1033 XML. In fact there is no single entry there (neither newed nor old) so. Don't know why and how i can achieve this? Regards, Brijesh Shah.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2018
Categories |