Is there an automated way of adding a new web part page?
I have found PowerShell commands and provisioning engine notation for adding new wiki pages. However, the page I need in my project is Web Part Page, not a wiki:
Is it possible to use either PnP PowerShell or provisioning engine for this purpose?
I found that it is possible at least using following structure in provisioning template:
<pnp:Files>
<pnp:File Src="wpptemp.aspx" Folder="{site}/SitePages" Overwrite="true" Level="Published">
<pnp:Properties>
<pnp:Property Key="ContentTypeId" Value="{contenttypeid:Web Part Page}" />
<pnp:Property Key="HTML_x0020_File_x0020_Type" Value="SharePoint.WebPartPage.Document" />
</pnp:Properties>
<pnp:WebParts>
<pnp:WebPart Zone="RightColumn" Order="0" Title="Relevant news">
<pnp:Contents>
<webParts>
<webPart xmlns='http://schemas.microsoft.com/WebPart/v3'>
Your web part
</webPart>
</webParts>
</pnp:Contents>
</pnp:WebPart>
</pnp:WebParts>
</pnp:File>
</pnp:Files>
What you want to add is a modern client side page, right? This is already covered by schema 2017-05 with ClientSidePages but unfortunately not yet implemented: https://dev.office.com/blogs/pnp-august-2017-release
Actually, that particular issue is not about modern pages. Web part pages is quite an old technology.
Sorry, I mixed it up. "Site page" is what I was talking about
We closed this issue as it had not activity within last 180 days. This is a generic process we have decided to perform for issues, which have not been explicitly marked still to be "work in progress" based on tags. We are performing this cleaning to make sure that old issues that have already been solved (but not closed) or are no longer relevant are cleaned out and make the issues more manageable. If this issue still valid, we would ask you to open a new issue and follow the guidance in the issue template related on the recommended location. We do apologize any inconveniences this might cause. Please do remember that issues in the issue lists are also messages for others in the community, so you can also check if you can assist on any of them. “Sharing is caring!”