How to display multiple site configurations in SharePoint 2013?
I made a site definition and I have multiple configurations. But when I try to create a subsite, and I look under the SharePoint Customizations tab for Template Selection. I only see `MyPublishingPage` and not `MyPublishingPage2` or `NewWeb`. Why is my third and first one not showing in the list?

Thanks

    <?xml version="1.0" encoding="utf-8"?>
    <Project Title="MyPublishingPage" Revision="2" ListDir="" xmlns:ows="Microsoft SharePoint" xmlns="http://schemas.microsoft.com/sharepoint/">
      <NavBars>

      </NavBars>

    
    
    
      <Configurations>
    
        <Configuration ID="-1" Name="NewWeb"/>
    
        <Configuration ID="0" Name="MyPublishingPage">
          <Lists>
    
          </Lists>
          <SiteFeatures>
          </SiteFeatures>
          <WebFeatures>
    
          </WebFeatures>
          <Modules>
            <Module Name="DefaultBlank" />
          </Modules>
        </Configuration>
    
    
        <Configuration ID="1" Name="MyPublishingPage2">
          <Lists>
    
          </Lists>
          <SiteFeatures>
          </SiteFeatures>
          <WebFeatures>
    
          </WebFeatures>
          <Modules>
            <Module Name="DefaultBlank2" />
          </Modules>
        </Configuration>
        
        
        
        
        
        
        
      </Configurations>
      <Modules>
        <Module Name="DefaultBlank" Url="" Path="">
          <File Url="default.aspx">
          </File>
        </Module>
        <Module Name="DefaultBlank2" Url="" Path="">
          <File Url="default.aspx">
          </File>
        </Module>
      </Modules>
    </Project>
August 31st, 2015 5:06pm

 The 'NewWeb' configuration (-1) is special and never shows up in the web template list.  But did you register both of your other configurations in a WEBTEMP.xml file?  If not, only the one you registered will show.  Here's an article about webtemp.xml files:

https://msdn.microsoft.com/en-us/library/office/ms447717(v=office.14).aspx

Free Windows Admin Tool Kit Click here and download it now
August 31st, 2015 6:59pm

Ur right, I didn't register them in the webtemp. After I did that, and then I had to enable them in the site settings > site template too. Then it worked.
September 8th, 2015 4:29pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics