There is a lot of new parameters available in the new SharePoint 2013 about page layouts and master page packaging and deployment.
Provision a page layout in sharepoint 2013
A couple of things have changed. The new markup that SharePoint itself uses for provisioning a page layout file looks like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<File Path="PageLayouts\My-Article-Page.aspx" Url="My-Article-Page.aspx" Type="GhostableInLibrary" Level="Draft">
<Property Name="ContentTypeId" Value="0x01010007FF3E05 7FA8AB4AA42FCB67B453FFC100 E214EEE741181F4E9F7ACC43278EE811003A22BFC19B81124C923710F952434E5E" />
<Property Name="FileLeafRef" Value="My-Article-Page.aspx" />
<Property Name="MasterPageDescription" Value="This is my custom Article page for SharePoint 2010" />
<Property Name="UIVersion" Value="15" />
<Property Name="Title" Value="My Custom Article Page" />
<Property Name="PublishingHidden" Value="FALSE" />
<Property Name="PublishingAssociatedContentType" Value=";#Article Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D;#" />
<Property Name="HtmlDesignAssociated" Value="FALSE" />
<Property Name="ContentType" Value="Page Layout" />
<Property Name="_ModerationStatus" Value="3" />
<Property Name="FileDirRef" Value="_catalogs/masterpage" />
<Property Name="FSObjType" Value="0" />
</File>
|
Note: you can check this by creating a design package via the new Design Manager, and check the content that has been generated.
Provision a published version
<File Path="PageLayouts\My-Article-Page.aspx" Url="My-Article-Page.aspx" Type="GhostableInLibrary" Level="Draft">
<File Path="PageLayouts\My-Article-Page.aspx" Url="My-Article-Page.aspx" Type="GhostableInLibrary" Level="Published">
|
How to Provision Your Master Pages
For provision master pages, the same approach as discussed above can be used. The only difference will be the properties you're going to provide. The properties that I use in my elements file the following:
|
<File Url="your-master-page.master" Type="GhostableInLibrary" Level="Published" ReplaceContent="true">
<Property Name="ContentTypeId" Value="0x01010500BF544AFE46ACEF42B8DA22C9CE89526E" />
<Property Name="UIVersion" Value="15" />
<Property Name="Title" Value="Your Master Page Title" />
<Property Name="ContentType" Value="Master Page" />
<Property Name="_ModerationStatus" Value="0" />
<Property Name="FSObjType" Value="0" />
</File>
|