Project Description
A Visual Studio 2012 SharePoint project with the minimum elements necessary to create a Custom Web Template sandbox solution for SharePoint 2013 + Office 365

Solution Description

The template consists of one feature, site scoped, with a SharePoint Empty Element and an onet.xml added. This is the bare minimum for a custom web template you can use to create new sites from in SharePoint 2013 including Office 365.

The code from the 0.1 Beta is included below as are some screenshots of the output.

To use this project, download the code and fill out the onet.xml with lists, features and modules you'd like in the web template you build from this minimal starting point.

Elements.xml

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <WebTemplate
    Name="MinimalWebTemplate"
    BaseTemplateID="1"
    BaseConfigurationID="0"
    BaseTemplateName="STS"/>
</Elements>

onet.xml

<?xml version="1.0" encoding="utf-8" ?>
<Project Revision="11" Title="$Resources:spscore,PortalTitle;">
  <NavBars/>
  <ListTemplates/>
  <DocumentTemplates/>
  <Configurations>
    <Configuration ID="0" Name="Default">
      <Modules>
        <Module Name="Default" />
      </Modules>
      <SiteFeatures/>
      <WebFeatures/>
    </Configuration>
  </Configurations>
  <Modules>
    <Module Name="Default" Url="" Path="">
      <File Url="default.aspx" NavBarHome="True"></File>
    </Module>
  </Modules>
</Project>

Screenshots

Create a new site example

Example site from template

Last edited Jun 3, 2013 at 3:20 AM by resing, version 5