• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 534
  • Last Modified:

Custom site template Sharepoint 2010

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
me24hour
Asked:
me24hour
1 Solution
 
AndrewSkoraroCommented:
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

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now