<?xml version="1.0" encoding="utf-8"?>
<Template xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CommunityCollection" displayName="Communities" hidden="false" webTemplate="CMSPUBLISHING#0">
  <!-- Register instance in db -->
  <Action xsi:type="ExecuteCodeAction">
    <Type>BusinessApp.AppService.V2.DomainLogic.SiteTemplateActions.InstanceCreator, BusinessApp.AppService</Type>
    <Method>RegisterInstanceCreated</Method>
    <Parameters>
      <Parameter type="System.String">{Web.FullUrl}</Parameter>
      <Parameter type="System.String">{Web.Title}</Parameter>
      <Parameter type="System.String">Project space</Parameter>
      <Parameter type="System.String">Community</Parameter>
      <Parameter type="System.String">ProjectSpace\SiteTemplates\Collaboration\Template.xml</Parameter>
    </Parameters>
  </Action>
  <!-- Initialize Communityportal -->
  <Action xsi:type="ExecuteCodeAction">
    <Type>ProjectSpace.BLL.SiteTemplateActions.CommunitiesInitialization, ProjectSpace.BLL</Type>
    <Method>Init</Method>
    <Parameters>
      <Parameter type="System.Int32">{context.items["instanceId"]}</Parameter>
    </Parameters>
  </Action>  
  <!-- Display Templates -->
  <Action xsi:type="DeployFileAction" src="_catalogs/masterpage/Display Templates/Search/Item_WizdomBusinessApp.html" replaceVariables="false" scope="Site">
    <Properties></Properties>
  </Action>
  <!-- Files -->
  <Action xsi:type="DeployFileAction" src="{Pages}/default.aspx" replaceVariables="false" clearExistingWebparts="true" scope="Web">
    <Webparts>
      <WebpartObject>
        <Webpart ZoneId="wt3columnsleftvar1" PartOrder="0">
          <webParts>
            <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
              <metaData>
                <type name="Microsoft.SharePoint.WebPartPages.ScriptEditorWebPart, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
                <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
              </metaData>
              <data>
                <properties>
                  <property name="ExportMode" type="exportmode">All</property>
                  <property name="HelpUrl" type="string" />
                  <property name="Hidden" type="bool">False</property>
                  <property name="Description" type="string">Overview</property>
                  <property name="Content" type="string"><![CDATA[ <div wizdom365-projectspace-favourites webpart-Properties='{"instanceId":{context.items["instanceId"]} }'></div> ]]></property>
                  <property name="CatalogIconImageUrl" type="string" />
                  <property name="Title" type="string">TitleToChange</property>
                  <property name="AllowHide" type="bool">True</property>
                  <property name="AllowMinimize" type="bool">True</property>
                  <property name="AllowZoneChange" type="bool">True</property>
                  <property name="TitleUrl" type="string" />
                  <property name="ChromeType" type="chrometype">TitleAndBorder</property>
                  <property name="AllowConnect" type="bool">True</property>
                  <property name="Width" type="unit" />
                  <property name="Height" type="unit" />
                  <property name="HelpMode" type="helpmode">Navigate</property>
                  <property name="AllowEdit" type="bool">True</property>
                  <property name="TitleIconImageUrl" type="string" />
                  <property name="Direction" type="direction">NotSet</property>
                  <property name="AllowClose" type="bool">True</property>
                  <property name="ChromeState" type="chromestate">Normal</property>
                </properties>
              </data>
            </webPart>
          </webParts>
        </Webpart>
        <Properties>
          <Property name="TitleToChange" value="Favourites">
            <Translation target="Value" key="Favourites" />
          </Property>
        </Properties>
      </WebpartObject>
      <WebpartObject>
        <Webpart ZoneId="wt3columnscentervar1" PartOrder="0">
          <webParts>
            <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
              <metaData>
                <type name="Microsoft.SharePoint.WebPartPages.ScriptEditorWebPart, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
                <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
              </metaData>
              <data>
                <properties>
                  <property name="ExportMode" type="exportmode">All</property>
                  <property name="HelpUrl" type="string" />
                  <property name="Hidden" type="bool">False</property>
                  <property name="Description" type="string">Overview</property>
                  <property name="Content" type="string"><![CDATA[ <div wizdom365-projectspace-overview webpart-Properties='{"instanceId":{context.items["instanceId"]} }'></div> ]]></property>
                  <property name="CatalogIconImageUrl" type="string" />
                  <property name="Title" type="string">TitleToChange</property>
                  <property name="AllowHide" type="bool">True</property>
                  <property name="AllowMinimize" type="bool">True</property>
                  <property name="AllowZoneChange" type="bool">True</property>
                  <property name="TitleUrl" type="string" />
                  <property name="ChromeType" type="chrometype">TitleAndBorder</property>
                  <property name="AllowConnect" type="bool">True</property>
                  <property name="Width" type="unit" />
                  <property name="Height" type="unit" />
                  <property name="HelpMode" type="helpmode">Navigate</property>
                  <property name="AllowEdit" type="bool">True</property>
                  <property name="TitleIconImageUrl" type="string" />
                  <property name="Direction" type="direction">NotSet</property>
                  <property name="AllowClose" type="bool">True</property>
                  <property name="ChromeState" type="chromestate">Normal</property>
                </properties>
              </data>
            </webPart>
          </webParts>
        </Webpart>
        <Properties>
          <Property name="TitleToChange" value="Overview">
            <Translation target="Value" key="Overview" />
          </Property>
        </Properties>
      </WebpartObject>
    </Webparts>
    <Properties>
      <Property name="Title" value="start">
        <Translation target="Value" key="Overview" />
      </Property>
      <Property name="ContentTypeId" value="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900E1A7B5EB4F6D4536ABA24236F66055A10009EAA0415C6C41B6BF661A416532A8FD" />
      <Property name="PublishingPageLayout" value="~sitecollection/_catalogs/masterpage/wizdom3Column.aspx, Wizdom3Columns" />
    </Properties>
  </Action>   
</Template>