Creating a Sub-Site of a Publishing Site that is NOT a Publishing Site in SharePoint

Another quick blog post for you guys.  There seems to be some confusion out there even among those who claim to be experts in SharePoint.  I was told as late as yesterday that you cannot create a sub-site for a Publishing Site that is not a Publishing Site.  I knew this to be incorrect from conversations with other individuals but had never actually sat down and figured it out.  So, @LoriGowin and I spent 15 minutes on this yesterday to prove it could actually be done.

The reason for this myth is (and you’ve probably run into this before) if you create a Publishing site in SharePoint and then try to create a new site IN SharePoint for that publishing site, the only template you are given as an option is a Publishing template, and no matter what you try you can’t seem to get that list of templates to include anything other than Publishing templates!

If ONLY there was some other way to create sub-sites in SharePoint… oh wait… there is!  Your handy dandy friend STSADM.

In order to get around this pesky issue in SharePoint use the “createweb” option in STSADM and specify the site template you would like to use.  For example:

stsadm.exe -o createweb -url http://path-to-publishing-site/subsite-name -sitetemplate <template name> -title <title of site>

 

That’s all there is to it.  Oh… what are the template names you can use?  Glad you asked.  I found a great post from Dirk Van den Berghe listing out the template names:  Site Template identifiers for use with STSADM  Thanks for the post Dirk!

Still need a more solid example?  Okay.. here is the above STSADM command creating a site using the blog template:

 

stsadm.exe -o createweb -url http://path-to-publishing-site/subsite-name -sitetemplate  BLOG#0 -title MyBlog

 

There you have it.  It CAN be done, and it’s really painless, and now you know where to go when you forget how to do it.  Enjoy!

posted @ Thursday, July 09, 2009 8:46 AM

Print

Comments on this entry:

# re: Creating a Sub-Site of a Publishing Site that is NOT a Publishing Site in SharePoint

Left by Summer at 7/9/2009 9:17 AM
Gravatar
Nice post!
Can't you also add it to your list of templates by going to your site settings and using this page as well?
_Layouts/AreaTemplateSettings.aspx
(Under Look and Feel -> Page Layouts and Site Templates)
I mean if you wanted to offer its availabilty through the GUI of course...
I don't consider myself an expert by any means, but I think this is an alternative option at least in the enterprise edition?

# re: Creating a Sub-Site of a Publishing Site that is NOT a Publishing Site in SharePoint

Left by Mark at 7/9/2009 9:28 AM
Gravatar
Great comment Summer! I was not aware you could use that. I tried it and it worked great as well! Thanks for making my blog post obsolete. :P I'm not quite an expert yet either (although I act like one sometimes) :)

thanks again!
Mark

# re: Creating a Sub-Site of a Publishing Site that is NOT a Publishing Site in SharePoint

Left by Brion Newell at 7/9/2009 9:58 AM
Gravatar
Agreed. We're currently doing this in our implementation.

Our top-level sites are publishing with workflow sites, allowing us to maintain control over the content that's gets published to these widely viewed pages. Then the pages below the publishing sites can be other publishing sites, or collaboration sites, etc.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«March»
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910