Site

Site

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<Configurator xmlns="http://schemas.mavention.com/SharePoint/Apps/SiteConfigurator">
  <Providers>
    <Provider Assembly="Mavention.Make.Engine" Class="Mavention.Make.Engine.Providers.SiteProvider" NodeName="Site"></Provider>
  </Providers>
  <Site Url="{url}" Title="{title}" Template="STS#3" LCID="1033" OwnerLogin="{owner}" UserCodeQuota="0" StorageQuota="0">
    <RootWeb Url="{url}" Title="{title}" Description="{description}" Template="STS#0" LCID="1033">
      <Properties>
        <Property Name="WebTemplate">Make.TeamSite</Property>
        <Property Name="WebTemplateVersion">1.0.0.0</Property>
      </Properties>
    </RootWeb>
  </Site>
</Configurator>

The template STS#3 indicates a Team Site with no connection to an Office365 Group.
Other populair template code are:

Code Title Description
STS#0 Team Site (Classic) A site with a classic experience
STS#1 Blank Site A blank site for you to customize based on your requirements
STS#3 Blank Site A site with no connection to an Office 365 Group
GROUP#0 Team Site A team site connected to an Office365 Group
SITEPAGEPUBLISHING#0 Communication Site Publish dynamic, beautiful content to people in your organization to keep them informed and engaged
WIKI#0 Wiki Site A site for a community to brainstorm and share ideas
PROJECTSITE#0 Project Site A site for managing and collaborating on a project
BLANKINTERNET#0 Publishing Site This template creates a site for publishing Web pages on a schedule, with workflow features enabled
SPSNHOME#0 News Site A site for publishing news articles and links to news articles

The following templates are using a combination of entitites to create a basic site type.

  1. Classic Teamsite
  2. Subsite
  3. Office 365 Group
  4. Microsoft Team (Requires Make 5.0 or above)
  5. Microsoft Team with private channel (Requires Make 6.2 or above)
  6. Modern teamsite (without Office 365 group)
  7. Modern communication site

Site Properties

There are numerous properties that you can define on site level. In this chapter you see examples on how to apply those site properties.

  1. Connect your site collection to a hubsite

    If you would like to associate a hubsite to your (new) SharePoint site collection, you need to add the entity “HubSiteUrl” to the “Site” tag. The value of the entity “HubSiteUrl” would be the address of the HubSite. It would look something like this in your Make template:

    1
    
    <Site Url="{​​​​​​url}​​​​​​" Title="{​​​​​​​​​​​​​title}​​​​​​​​​​​​​" OwnerLogin="{​​​​​​​​​​​​​siteowner}​​​​​​​​​​​​​" Template="STS#3" LCID="1033" StorageQuota="1024" TimeZoneId="4" HubSiteUrl="https://wmeurer.sharepoint.com/sites/hub">
    

    AnΒ example of a template can be found here. Of course you need to change the value of the hubsite to your own hubsite.

  2. Promote site as hubsite

    It is possible to promote a site collection as hubsite via PowerShell. This can also be done via provisioning. In your Make template you need to add the property “IsHubSite” to the “Site” entity. It will look like this:

    1
    
    <Site Url="{​​​​​​​​​​​​​​​​​​​​​​​url}​​​​​​​​​​​​​​​​​​​​​​​" Title="{​​​​​​​​​​​​​​​​​​​​​​​title}​​​​​​​​​​​​​​​​​​​​​​​" OwnerLogin="{​​​​​​​​​​​​​​​​​​​​​​​siteowner}​​​​​​​​​​​​​​​​​​​​​​​" Template="STS#3" LCID="1033" StorageQuota="1024" TimeZoneId="4"Β IsHubSite="True">
    

    An example of a template can be found here