Forum Discussion
PnP Provisioning Engine template support for publishing pages ?
You can provision Publishing Pages using PnP, see an example below:
<pnp:File src="mypublishingpage.aspx" Folder="{site}/Pages" Overwrite="true">
    <pnp:Properties>
        <pnp:Property Key="ContentTypeId" Value="{contenttypeid:MyPageContentType}" />
        <pnp:Property Key="Title" Value="My Publishing Page" />
        <pnp:Property Key="PublishingPageLayout" Value="{sitecollection}/_catalogs/masterpage/MyPageLayout.aspx,  My Page Layout" />            
    </pnp:Properties>
</pnp:File>
In this example a Publishing page with the filename mypublishingpage.aspx is provisioned to the pages library using the specified Content Type and Page Layout.
Are there any specific challenges you face when provisioning Publishing Pages?
Thanks for the quick response Paul :)
I provision a site using the pnp get...template and apply...template powershell cmdlets.
I noticed that publishing pages are not included in the template.
Hence the first part of my question : is this coming in the near future.
Second part : If I have to do it myself, what is the best method taking into account that I want to 'copy' an existing page (in a source site) to a target site.
If so advisable I can get... the template, add xml to it manually, and then use that extended template to provision the pages. 
I will need to come up with the xml that provisions everything as is on the source page. 
Thanks again.
- paulpaschaFeb 16, 2017Bronze ContributorAh I see what you mean... I don't know about planned support. Maybe VesaJuvonen can share some info on this.... We've done quite a few custom development projects in which defining our templates with Publishing Pages was largely a manual proces. - Danny FonckeFeb 16, 2017Copper ContributorIt would already be nice to have a way to get the xml for a page (the pages) using the pnp engine :) even if the engine is not capable of applying it to another site. - Debayo GrahamFeb 16, 2017Brass Contributorhi when getting the provisioning the template did you use -IncludeNativePublishingFiles AND -PersistPublishingFiles https://github.com/SharePoint/PnP-PowerShell/blob/master/Documentation/GetPnPProvisioningTemplate.md