Hello guys,
After getting the above error, The trick is to name the module like the custom default page - for example in my case my default page name is "defaultCustom.aspx" hence I named the module <Module Name="defaultCustom" />.
Here is the entire onet.xml
<?xml version="1.0" encoding="utf-8"?>
<Project Title="SiteDefinition1" Revision="2" ListDir="" xmlns:ows="Microsoft SharePoint" xmlns="http://schemas.microsoft.com/sharepoint/">
<NavBars>
</NavBars>
<Configurations>
<Configuration ID="0" Name="SiteDefinition1" CustomMasterUrl="_catalogs/masterpage/CustomV4.master" MasterUrl="_catalogs/masterpage/CustomV4.master">
<Lists/>
<SiteFeatures>
<!--PublishingPrerequisites Feature-->
<Feature ID="{a392da98-270b-4e85-9769-04c0fde267aa}"/>
<!--PublishingResources Feature-->
<Feature ID="{aebc918d-b20f-4a11-a1db-9ed84d79c87e}"/>
<!--PublishingLayouts Feature-->
<Feature ID="{d3f51be2-38a8-4e44-ba84-940d35be1566}"/>
<!--Publishing Feature-->
<Feature ID="{f6924d36-2fa8-4f0b-b16d-06b7250180fa}" />
<!--Sharepoint Server Standard Feature-->
<Feature ID="{b21b090c-c796-4b0f-ac0f-7ef1659c20ae}" />
<!--Sharepoint Server Enterprise Feature-->
<Feature ID="{8581a8a7-cf16-4770-ac54-260265ddb0b2}" />
<!--Document Set Feature-->
<Feature ID="{3bae86a2-776d-499d-9db8-fa4cdc7884f8}" />
<!--Document ID Feature-->
<Feature ID="{b50e3104-6812-424f-a011-cc90e6327318}" />
<!--Search Server Webparts Feature-->
<Feature ID="{eaf6a128-0482-4f71-9a2f-b1c650680e77}" />
<!-- Termstore Site Features -->
<Feature ID="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" />
<Feature ID="7C637B23-06C4-472d-9A9A-7C175762C5C4" />
<Feature ID="AEBC918D-B20F-4a11-A1DB-9ED84D79C87E">
<Properties xmlns="http://schemas.microsoft.com/sharepoint/">
<Property Key="AllowRss" Value="false"/>
<Property Key="SimplePublishing" Value="false" />
</Properties>
</Feature>
<!--Custom Site Feature-->
<Feature ID="7916bd78-38dd-4595-a02f-68cd4975144a" />
<!--Custom Master Page Feature-->
<Feature ID="{66b35b36-fd66-4a16-ab68-d3b47ae8cbf7}" />
<!--Custom Layout Page Feature-->
<Feature ID="{7a226876-f2c4-45da-b09b-bd06598cecac}" />
</SiteFeatures>
<WebFeatures>
<!-- Publishing feature -->
<Feature ID="22A9EF51-737B-4ff2-9346-694633FE4416">
<Properties xmlns="http://schemas.microsoft.com/sharepoint/">
<Property Key="ChromeMasterUrl" Value="~SiteCollection/_catalogs/masterpage/CustomV4.master"/>
<Property Key="DefaultPageLayout" Value="~SiteCollection/_catalogs/masterpage/Custom.Layout.aspx"/>
<Property Key="WelcomePageUrl" Value="$Resources:osrvcore,List_Pages_UrlName;/defaultCustom.aspx" />
<Property Key="SimplePublishing" Value="true" />
<Property Key="RequireCheckoutOnPages" Value="False" />
</Properties>
</Feature>
<!--This Feature and Properties corresponds to the Navigation Settings UI page-->
<Feature ID="541F5F57-C847-4e16-B59A-B31E90E6F9EA">
<!-- Per-Web Portal Navigation Properties-->
<Properties xmlns="http://schemas.microsoft.com/sharepoint/">
<Property Key="InheritGlobalNavigation" Value="true"/>
<Property Key="ShowSiblings" Value="true"/>
<Property Key="IncludeSubSites" Value="true"/>
</Properties>
</Feature>
<!-- Enterprise Wiki Feature -->
<Feature ID="76D688AD-C16E-4cec-9B71-7B7F0D79B9CD" />
</WebFeatures>
<Modules>
<Module Name="defaultCustom" />
</Modules>
</Configuration>
</Configurations>
<Modules>
<Module Name="defaultCustom" Url="$Resources:osrvcore,List_Pages_UrlName;" Path="">
<File Url="defaultCustom.aspx" Type="GhostableInLibrary" Level="Draft" >
<Property Name="Title" Value="$Resources:cmscore,EnterpriseWiki_Site_WelcomePageTitle;" />
<Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/Custom.Layout.aspx, Custom Web Part Page" />
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_welcomepage_name;" />
</File>
</Module>
</Modules>
</Project>
No comments:
Post a Comment