I am following the following article about Creating a Page Layout in SharePoint 2010 using Visual Studio 2010. I have deployed the solution but when I click on page layout my new type is not there.
My Mastaerpage Gallery is as follows:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="MasterPageGallery"
Path="MasterPageGallery"
Url="_catalogs/masterpage" >
<File Url="my.master" Type="GhostableInLibrary" >
<Property Name="UIVersion" Value="4" />
<Property Name="ContentTypeId" Value="0x010105" />
</File>
<File Path="myintranet.aspx" Url="myintranet.aspx" Type="GhostableInLibrary">
<Property Name="Title" Value="my Intranet Page" />
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;" />
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/mypage.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/mypage.png" />
<Property Name="PublishingAssociatedContentType" Value=";#$Resources:cmscore,myintranet_articlepage_name;;
#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237my3900242457EFB8B24247815D688C526CD44D;#"/>
</File>
</Module>
</Elements>
My Preview Images module is as follows:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Previews Images" Url="_catalogs/masterpage/$Resources:core,Culture;/Preview Images">
<File Path="Preview Images\mypage.png" Url="mypage.png" Type="GhostableInLibrary">
<Property Name="Title" Value="my Intranet" />
</File>
</Module>
</Elements>
My feature contains the files. It deploys correctley. If I browse to _catalogs/masterpage/mypage.png no file is found.
Where am I going wrong? How can I debug this?