Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am working on a sharepoint portal project. I am planning to have some custom web templates. And then create new site instances from these template. I will follow this way; create a basic publishing site from sharepoint UI customize it according to my needs (create content types, page layouts, pages, put my custom developed web parts in welcome pages etc etc.) Then i will save it as template, then download the solution file and import that file into the visual studio. So then i have a deployable web template.

Here is my question. I wonder which kind of items will be included in the web template. For example do my webparts be included in the newly created sites?

Thanks

share|improve this question
    
You should increase your accept rate. That said, you have to know that a .Wsp file is actually a simple .zip file. In the .zip file, you will find a bunch of xml files that is describing the template. Each kind of file in this archive is described in the documentation. This can be a good place to start to understand the template model of sharepoint –  Steve B Oct 5 '12 at 14:32
add comment

1 Answer

up vote 1 down vote accepted

First of Publishing site don't support being saved as Site Templates. Secondly it would only include the configuration of web parts not the web parts themselves.

Instead you should create all of your modifications as features, and then create a Site Definition based on the Publishing site remove the features you don't want and add your own features.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.