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 ...
7
votes
1answer
188 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. ...
7
votes
3answers
2k 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 ...
6
votes
1answer
558 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
3answers
436 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
1k 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
324 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
8k 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
1k 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
221 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
847 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
410 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
1k 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
794 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
3k 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
445 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
355 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
2answers
88 views

How do I get the real Web template name and Id from a web?

I'm creating a tool that will "clone" webs inside a site. It reads child webs of a set web and displays them as templates for the user to select from. I've however run into a problem when I try to ...
2
votes
1answer
203 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
0answers
40 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
2k 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
1answer
1k views

Hide Web Template?

I cant figure out how to hide a web template in the user interface, is this even possible? I found this answear to my question at Mirjam's blog, but I can't find the "Page layouts and site ...
1
vote
2answers
2k 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
555 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
755 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
2answers
5k 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
1answer
265 views

SharePoint 2013 Web Templates Masterpage not found

I created a new web template for SharePoint 2013 (as Farm solution, because it has to be selected when creating a new site collection). The site collection creates succesfully. But when I navigate to ...
1
vote
1answer
505 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
887 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
421 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
2answers
754 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
2answers
2k 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
1answer
517 views

Enabling Navigation and SharePoint Publishing Infrastructure

I have activated SharePoint Publishing Infrastructure feature provisioned through my web template. But the Navigation (my libraries in QuickLaunch bar) was not visible after publishing feature ...
1
vote
1answer
2k 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
233 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
620 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
197 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
245 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
4k 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
285 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
193 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
1answer
27 views

Why SaveSiteAsTemplate is hidden

In sharepoint 2010 it was able to Save site as template. But in sharepoint 2013 we should Inaktivate Publishing feature to be able to show this link. I know that there is some workarounds But my ...
1
vote
0answers
48 views

Error when applying custom webtemplate to a sitecollection

I have created a webtemplate from an existing sitecollection by using(save as template). I then imported this template to VS and changed some things in Elements.xml and onet. Now when I try to apply ...
1
vote
0answers
20 views

Problem loading pages as a site owner when Minimal Download Strategy (MDS) is active

We have created a custom teamsite webtemplate, which has some extra site columns, contenttypes, lists and libraries. No fancy stuff. However we got some complaints that sometimes, not always pages ...
1
vote
0answers
29 views

Template of Sharepoint Sites in Sharepoint 2013 created by CRM Microsoft Dynamics

At work I have got a CRM Microsoft Dynamics. At work we have got a lot of projects. When the new project is created in CRM we want to make a new site or site Colection for only this project. With a ...
1
vote
0answers
30 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 ...