6

I'm getting ready to create a product for SharePoint, and I'd like it to be as easy as possible for people to deploy and use.

I was planning on using a Site Definition, since this seems like a great way to have an installable solution. Just create an installer that runs powershell or something nice!

However, I've been reading a lot about Web Templates lately, and the idea of having a Sandbox compatible solution seems like a good way to market to /sites/ users, who have no server side access.

The problem I'm working with, is that a Site Definition can be added easily by a SCA in the create subsite menu, whereas a Web Template seems to be deployable ONLY from Central Admin, which defeats the purpose a little bit. What am I missing in making this decision?

1
  • Suppose we create 2 sites. One from site template and another site from site definition. Then does modification to the site def or site template get inherited by the site instance?
    – variable
    May 15, 2015 at 7:18

1 Answer 1

4

Have you had a chance to look over the following link?

http://blogs.msdn.com/b/vesku/archive/2010/10/14/sharepoint-2010-and-web-templates.aspx#sitetemplate

"One of the consideration with the site templates is also the fact that unless you import them to Visual Studio and modify its settings, they are only available on site collection level (site collection scoped feature), which means that to be able to have the template available from multiple locations, we’ll have to either deploy the site template as sandbox solution to multiple site collections or deploy it as full trust solution and then activate the particular feature in site collections to have the template available."

then

"When we have our web template created, we’ll associate the element file to feature, which will be responsible of deploying the web template. WebTemplate element is supported in two scopes, which are Farm and Site. This means that we can deploy the web templates to be available either throughout the farm or based on site collection scoped feature activation. It’s important to notice that dispute the fact that we’d be using site collection scoped feature for deployment, we can still deploy the web template using farm scoped feature. This would for example give us possibility to filter the options available from the Create site functionality, based on feature activation status."

From what I have read, web templates are the way to go

7
  • But this would still mean that the sites HAVE to be created in Central Admin, yes?
    – Wesley
    Jun 22, 2012 at 19:44
  • "Once the feature has been activated on a site collection users within that site collection can create sites using the template."
    – bitterac
    Jun 22, 2012 at 20:39
  • Created a small example and WAS able to deploy it from the "Create" menu inside of viewlsts
    – Wesley
    Jun 22, 2012 at 21:01
  • I'm glad you asked about this, you really gain so much more by using web templates
    – bitterac
    Jun 22, 2012 at 21:02
  • 1
    limited to sandbox? where did you read that? web templates can be created in either full trust solutions or sandboxed solutions. if you have questions about what you can do inside sandbox, you are going to have to post a new question. the other guys will be able to help out
    – bitterac
    Jun 23, 2012 at 1:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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