Hi
Is there any easier way to contruct the page layout? Stuck in the webparts i want?
thanks
Peter
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Hi, can you clarify a bit on what you are after?
Hi @bcameron1231 , i want to know how people construct the xml that use to generate the pnp file for a site page.
@quantrpeter the easiest way is to create a site page in the browser, add webparts, sections, layouts, settings, etc, and then use Get-PnPProvisioningTemplate https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnpprovisioningtemplate?view=sharepoint-ps. By default this will grab everything in a site collection, though with the xml output, you could then trim this to meet you specific needs, and you will have the XML for your particular site page as well.
Dear Mr @eoverfield , thanks for your answer.