SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using sharepoint 2010 and VS2010.

I have implemented this tutorial for creating a custom web template, and it works:

I have used/copied the teamsite template like in this tutorial to my custom web template.

I am wondering if the following is possible:

I create a site collection from the site template "Publish Site".

In this site collection I create a sub site and select my custom web template (inherited from a teamsite template).

Is this ok, or not possible?

These are my custom web template files:

defaultdws.aspx (I copied this file from the teamsite site template)

default.aspx (I copied this file from the teamsite site template)

ONET.xml (I copied this file from the teamsite site template)

elements.xml (Here I inherit from the teamsite site template: BaseTemplateID="1" BaseTemplateName="STS" BaseConfigurationID="0")

share|improve this question
What's your goal? – Robert Lindgren Mar 27 '13 at 20:08
I have already yet a site collection from the site template "publishing site", but I would like to create a custom webtemplate inherited from the site template "teamsite". I am afraid this is not compatible. – Ola Mar 27 '13 at 20:11
You can always activate publsihing features on a Teamsite or vice versa – Robert Lindgren Mar 28 '13 at 7:11

It is possible,

Add /_Layouts/AreaTemplateSettings.aspx at end of your publishing site URL, it will take you to Page Layout and Site Template Settings which can be used to create a team site template as sub-site of publishing site.


Go to Site Actions > Site Settings > Look And Feel > Page Layout and Site template.

Select the list of templates you want.


share|improve this answer

Your Answer


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.