Showing posts with label custom tab. Show all posts
Showing posts with label custom tab. Show all posts

01 June, 2012

Mystery of save site as template in SharePoint 2010

Whenever this word “mystery” comes into the picture then lot of questions arises as what exactly it is, How exactly it works, is it really same as SP2007 and so many things…
Today I want to share some issues that I have experienced and want to help you if you come across the same. By doing this, I want to save your time as well as the headache while troubleshooting the issue. Okay, let starts…
First of all-new things to highlight first:
SharePoint 2007 V/S SharePoint 2010
Site Templates
Solutions
/_catalogs/wt/Forms/Common.aspx
_catalogs/solutions/Forms/AllItems.aspx
saved as .STP
Saved as .WSP
No activation
Activation exist

In SharePoint 2010, when we save any site as template then it will get stored under solution gallery (site actions-site settings-Galleries-solutions)
Now suppose the requirement is:
You want to transfer any site/subsite from one site collection to another then how we will do/How exactly we will proceed ?
It’s very easy:
§  Open the source site on which you are working on/ that you want to transfer
§  Site actions
§  Site settings
§  Save site as template (site settings-site actions-Save site as Template)
§  It will provide you a box in which you provide the template name details
§  Once you click OK then it will save the template in solution gallery
§  Click on the template name and it will give you the option to save it to desktop
§  Now go to the destination site (site actions-site settings-galleries-solutions)
§  Upload the solution that you have saved in previous steps
§  That’s it-Done!!
Not able to see the uploaded site under custom tab
Here the mystery arises J
We have executed each and every step in correct order but still not able to see the uploaded template under custom tab/how we can create a subsite if we can see that saved template?
Don’t worry guys-here is the solution:
§  Open the site where you have uploaded that .WSP file/Template
§  Site actions
§  Site settings
§  Galleries
§  Solutions
§  Hover your mouse to the dropdown of that template
§  You will see the option of ‘Activate’

§  That’s it-as soon as you activates the solution, it will be ready to use and you can see the template name under ‘Custom Tab’.

Now suppose the requirement is:
After deploying the solution, I still cannot see the template when I create new site collection via Sharepoint Central Administration
Here is the answer for this: If you want to have the template available in the default templates list when creating a site collection it has to be installed as a farm solution.  That means creating a Web Template or a custom site definition.  You can take the sandbox solution template and import it into Visual Studio as the basis for a Web Template.
I think most of doubts has already been clear after reading the above mentioned information…but please don’t worry, if you have any queries/questions/confusion then please let me know. I would be more than happy to help you as well as resolves your issues.
Thank you