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've written some code which needs to be exacuted when creating a new site.
The site should look like something between a blank site and a team site. (Very basic) And also uses a custom master page.

I thought of creating a Site Definition starting from the team site and stripping it down,
and adding the code behind through a feature with feature receiver. (Would do it like this for 2007)
Is this a good approach for 2010 or should I create a Web template?

Does anyone has some guidelines/tutorials for creating team site Web Templates in VS2010?

share|improve this question
add comment

2 Answers

When working with SharePoint 2010 you should always try to use Web Templates instead of Site Definitions. The biggest benefit is the ability to update Web Templates and there are only a few edge cases when you would need to fall back to Site Definitions.

share|improve this answer
add comment

This doesn't specifically answer your Feature Receiver question. However, when looking at Side Definitions vs. Web Templates, I suggest you read this article on MSDN.

share|improve this answer
    
+1 for nice link –  Anonymous Feb 2 '11 at 5:32
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.