Solved

Custom site template Sharepoint 2010

Posted on 2011-03-03
1
520 Views
Last Modified: 2012-06-27
I want to create a custom site template for a subsite in SP2010. This site template should carry lists and word doc templates. And, the list and document templates must use the site content type created at top level site
Can someone please tell me steps involved in it.
I will be using Visual Studio 2010 for development.

Thank you very much...!!
0
Comment
Question by:me24hour
1 Comment
 
LVL 3

Accepted Solution

by:
AndrewSkoraro earned 250 total points
Comment Utility
There is a semi-easy way to do this using Visual Studio.  

The first thing you want to do is create all of your lists, libraries and populate all templates and data you want to include in your template. *one recommendation is to not deploy any OOB features that may add items to your site (lists, libraries, content types) until after these steps.  This is just to simplify the template creation.  

Save the site as a template.

Download the template to your computer.  This is done from the template library.

Start VS 2010 and create a new project.  Select the Import SharePoint Solution Package.

For the project template, select the .wsp file you just created.

Select your items to import.  This is where it gets a little tricky.  Be sure to select your items and its content (separate selection). You may have to play around with this to get it right.  I would refrain from adding any OOB items.

This will create a feature.  You might want to check that the feature includes everything you have imported before deploying.  *You will probably want to create a test site collection, because you may have to destroy it and redeploy it several times to get it.

Good Luck!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now