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 am using sharepoint 2010 and VS2010.

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

http://usmanmughal.wordpress.com/2011/04/26/how-to-create-web-template-in-sharepoint-2010-using-feature/

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. –  KHA 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
add comment

1 Answer

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.

OR

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

Select the list of templates you want.

Source

share|improve this answer
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.