A type of template specific to website design.

learn more… | top users | synonyms

13
votes
2answers
2k views

Convert site template to site definition

How do I go about making a site template to a site definition? For example, if I have a modified team site which I saved as WSP (save as site template), can I import that into VS2010 and convert to a ...
6
votes
1answer
125 views

Easy and maintainable way to create templates for sites?

What is currently the best way to add a template for site collections and subsites? Background: Vesa Juvonen wrote a good blog post in 2010 about declarative web templates over site definitions. ...
5
votes
3answers
412 views

SharePoint Online web template debugging

I'm trying to develop a custom web template to use with SharePoint Online. I created an empty web online and saved it as a template (without content). I then loaded that WSP into Visual Studio and ...
5
votes
1answer
468 views

Site Definition vs Web Template for product site

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 ...
5
votes
1answer
983 views

BaseTemplateId to use in WebTemplate element when creating template based on BLANKINTERNET

I am creating a WebTemplate based on BLANKINTERNET. I know the BaseTemplateId you reference in your web template isnt really used to anything, but still as a best practice should refer to the ...
4
votes
3answers
267 views

Publishing Site “Save site as template”

How to save site as template for a Publishing Site? I do not understand how this is done.
4
votes
2answers
6k views

The site template requires that the Feature {GUID} be installed in the farm or site collection

I thought Microsoft did a good job documenting sp2010. I am so frustrated that I can't find anything related to this. I have a web template project. All I want is to run bunch of code when a web is ...
4
votes
4answers
956 views

Web Template - Receivers Not Firing

I have a custom web template used to provision site collections that activates features with onet.xml and is deployed as a farm solution. I've tried both feature receivers and event receivers (on ...
3
votes
1answer
93 views

Restrict the usage of a custom web template for sub-sites creation only

I created a WebTemplate in Visual Studio and deployed it as a farm solution (I couldn't create a sandbox solution because it needs to deploy a custom master page and other stuff to the GAC). Now it ...
3
votes
1answer
716 views

OOB Feature Stapling on custom web templates

I have read on several blog posts (Vesa,Mirjam) that custom web templates (CWT) does not support feature stapling (MSDN doesnt mention this tho, but I take their word on it). What I am wondering is, ...
3
votes
2answers
113 views

updating CustomMasterUrl of rootweb and subweb

I've created a web template and as part of the provisioning process I set the SPWeb.CustomMasterUrl. I do this in code. When I create a site collection using this template it works fine but if I try ...
3
votes
0answers
361 views

Upgrade SharePoint 2010 WebTemplate to SharePoint 2013

I had a SharePoint 2010 project that deploys a WebTemplate to the farm. I upgraded the project to make it compatible with SharePoint 2013 and updated the solution in SharePoint farm. Now, when I try ...
2
votes
1answer
786 views

Create Web part programatically VS 2010

we are to create several web parts after a site is provisioned with WSP. I can either create wp from scratch on feature action. Or save a set of WP in gallery and create an instance out of that when ...
2
votes
2answers
1k views

Create site collection with custom web template in Office 365 - SP2013

Is it possible to create a site collection (top level site) based on a custom web template, created in VS in the form of an app or sandbox? I know there's a possibility to use the "Select a template ...
2
votes
2answers
2k views

Custom web templates vs custom site definitions

I read the MSDN article "Deciding between custom web templates and custom site definitions". The article only scratches the surface, so I was wondering if anyone have had some hands on experience with ...
2
votes
2answers
1k views

“Web Template” item template is not available in Visual Studio 2012 list of item templates

I am working with visual studio 2012 and want to add sharepoint 2013 "Web Template" item from VS 2012 list of sharepoint 2013 item templates. But I could not find "Web Template" item in SP 2013 item ...
2
votes
1answer
403 views

FeatureActivated not called for Site Template

We have an web-level feature that when you activate it will change the master pages used by the web to point to a .master page in the rootweb of the site collection. This feature has been activated ...
2
votes
1answer
321 views

Setting preview image for Sharepoint 2010 custom web template

I have a custom Sharepoint 2010 Web Template and I would like to set a custom preview image for it in the Sharepoint add site gallery. Example (I wanna set a custom image for the "Project Template ...
2
votes
1answer
1k views

Do Site Templates include content types in site collection

I had created custom content types in site settings that I was referencing with a list on a site. When I did a save as template from the site, would that have also saved the content types? I passed ...
2
votes
1answer
126 views

Whats the purpose of BaseTemplateName, BaseTemplateID and BaseConfigurationID?

What does BaseTemplateName, BaseTemplateID and BaseConfigurationID exacly do? Whats purpose of them in the webtemplate elements.xml? Thanks
2
votes
3answers
2k views

Problems adding webparts to a page in the correct order

I would think there's something supersimple I'm missing, but I can't find where I'm going wrong. I have a feature deploying a default.aspx page with two CQWP webparts. I use the AllUsersWebPart ...
2
votes
1answer
123 views

Site Contents link in Quick Launch below Edit link (SharePoint 2013)

I'm creating a custom WebTemplate. I added the following NavBars to the template: <NavBars> <NavBar Name="SharePoint Top Navigation Bar" Url="" ID="1002" /> <NavBar ...
2
votes
0answers
39 views

How to use Web Template in sharepoint 2010

I have created a Web Template named "My WebTemplate" in Visual studio 2010 and deployed successfully to http://somesite. Now in http://somesite web application. I want to create a site that uses "My ...
1
vote
6answers
1k views

How many root site collections we can create

I have a simple question just to remove my confusion. In one web application, can we create multiple root site collections ? I have 3 different custom web templates, and for each template, I want to ...
1
vote
2answers
815 views

Not able to deploy custom web template at farm scope

I have developed a custom Web Template based on "BDR#0" in SP 2013. It works perfect and I can deploy it using Site scope feature. The web template is developed by adding a Module in VS 2012 which ...
1
vote
3answers
421 views

How to activate feature in a custom site

I have created a publishing web template. Now I need to activate a feature once the site is provisioned. In order to achieve this, I've created an event receiver with something like this: public ...
1
vote
1answer
646 views

Define subsites in webtemplate

Is it possible to define a subsite in a webtemplate? I can't use a site definition because I'm working in Office 365 - SharePoint Online. Wrong approach: I thought about activating a site-feature in ...
1
vote
1answer
388 views

aspx page in module and ghosted web parts

I am making a webtemplate. This webtemplate activates a hidden feature which contains a module, deploying the default.aspx page. The module looks like this: <?xml version="1.0" ...
1
vote
1answer
677 views

Getting Web Template Not Found error while importing

I am importing a exported site with several sub-sites to a new Site Collection of its Own but getting following error Start Time: 8/9/2012 9:32:31 AM. Progress: Initializing Import. ...
1
vote
2answers
4k views

Error when Creating a site from custom template - “A duplicate field name <name> was found.”

When a site has been saved as template and then automatically uploaded and activated in the solution gallery and a user is trying to create a new site based on this custom template he get's an error ...
1
vote
2answers
98 views

Provision list view for discussion board

I have provisioned a publishing page through a feature and andded an instance of a discussion board web part to the home page, this works fine. How can I make sure the web part chrome is set to ...
1
vote
1answer
987 views

why this site feature is not activated when I create a new site by my custom web template?

I am using sharepoint 2010 and vs2010. I have created a custom webtemplates and begin from a copy of a teamsite. In my onet.xml I see the following site feature elements: <SiteFeatures> ...
1
vote
2answers
175 views

How to add feature to web template

I have created a web template into my project. I have created a feature and add event receiver where I have added code to create custom list. Now I want to add this feature to the web template. How I ...
1
vote
1answer
379 views

Feature Activated Event not triggered when creating a new sub site with web template

When I create a new site I have a Web Scoped FeatureActivated event that I would like to run. The feature does get Activated but the FeatureActivated event is not triggered. The site is created with ...
1
vote
1answer
158 views

How to create web template based on Moss 2007 web site in sharepoint 2010

I have a small requirement.. We are migrating moss2007 to sharepoint 2010 online ( cloud) I have a Moss 2007 web site with some of the webparts( both out of box webparts (list view webparts) and one ...
1
vote
3answers
192 views

Defaulting to a tab in Template Selection of Create Site Collection in Central Admin

We have custom Web Templates deployed in our SharePoint 2010 deployment. The web templates are have a custom DisplayCategory defined Elements.xml (let's say it's Foo). In central admin's Create Site ...
1
vote
2answers
3k views

Provisioning a Welcome Page to Pages Library

I have a custom Web Template which enables the default features of a Publishing Site and in addition it enables custom Features e.g. WelcomePageProvisioning. It's kinda straight forward, but still I ...
1
vote
1answer
237 views

Custom default page - edits not saved in content editor web part

I've created a custom default.aspx page which is provisioned through a custom web template using SharePoint 2010. I've added the below code to add a content editor web part, with some default content. ...
1
vote
2answers
188 views

Is there a way to move a site across web applications regardless of site template?

I have our old 2007 intranet upgraded to 2010 via database attach. It's in its own web application and I want to move some of the sites over to our production web application. I'm using a script ...
1
vote
2answers
211 views

Custom webtemplate - default webparts are missing

I have created my custom site, which contains custom WebTemplate, Master Page and Page. However, I don't have any SharePoint webparts to select. When I check my Web Part Gallery it's empty. "There ...
1
vote
0answers
27 views

Default.aspx via code?

Would it be possible and recommended to add a custom Default.aspx (when no publishing nor wiki front page are enabled) via code (remote provisioning) vs adding it via a Module declaratively? are there ...
1
vote
0answers
27 views

Migration of custom Default.aspx (Web Template)

I am considering to change the Default.aspx (no publishing, no wiki welcome page) via Web Template (for self-service site creation) in SP2013. I am wondering if this would have effect on future ...
1
vote
2answers
786 views

Custom Web template based on Team Site is empty

Following is the process I followed to create a Custom Web Template based on Team Site in SP 2013. I opened VS 2012 created an "empty SharePoint project", added an "Empty Element", changed its ...
1
vote
0answers
27 views

Can I use a provisioningProvider to a custom web template?

I have problems with the sequence of my logic. I have featere1 where I have my custom webtemplate. Then I have feature2 where I have implemented my default.aspx page. Feature1 is activating feature2. ...
1
vote
1answer
182 views

How to create a simple web template (in VS) with a announcement, calendar, links, tasks list on the homepage?

I am using sharepoint 2010 and VS2010. I created a site collection by the publishing site template. I dont want to use the "save as template" because it is not supported in a publish template. Also ...
1
vote
1answer
34 views

What should be the provisioning model?

What should be the provisioning model for supporting only 2010 and above, if: it needs to include custom SharePoint security groups it would be deployed to multiple unrelated SharePoint ...
1
vote
0answers
76 views

Newly created web template is invisible

I have created a new web template (contains a elements.xml and onet.xml) which is based on team site. I have deployed the .wsp file. However when I go to "New Site" under Site Actions I cannot see my ...
1
vote
0answers
27 views

Web template using an old version

I've copied the same question I found in an answer in this link because it is happening to me: when I create a new site using powershell or code, it is using an old version of the template. Not ...
1
vote
1answer
160 views

error 0x80070055 when provisioning a site collection with Document Center or Record Center

In QC we are getting 0x80070055 error when provisioning a site collection with web template Document Center or Record Center template. Did some googleing and learned this error is due to dup guid in ...
0
votes
3answers
56 views

What is Site, Web, Site Template and Web Template in SharePoint?

Can anyone please tell me what the difference is between Site and Web in SharePoint. Also what is Site Template and Web Template?