Forum Discussion
PnP Provisioning Engine template support for 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.
Ah 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 Contributor
It 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 Contributor
hi when getting the provisioning the template did you use -IncludeNativePublishingFiles AND -PersistPublishingFiles
https://github.com/SharePoint/PnP-PowerShell/blob/master/Documentation/GetPnPProvisioningTemplate.md
- Danny FonckeFeb 21, 2017Copper Contributor
Sorry for the long wait
Yes I did use those 2 switchparameters. The pages are not persisted in the xml
(what it does do is persist the _catalog/master..... files in a separate directory.)