Share SharePoint Modern Page Templates Between Sites
Question details
Reuse a SharePoint modern page template on another site.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- A user wants to share a modern communication site page template with another SharePoint site.
- Observed behavior
- Standard page tools, SharePoint Designer, and downloaded ASPX files do not provide a direct way to reuse the template across sites.
Install PnP PowerShell and confirm that you have access to the source and destination sites and a Microsoft Entra application registration configured for interactive PnP authentication. Identify the source page and check that the destination site supports the page's web parts and dependencies.
Export and apply the page template with PnP PowerShell
Use a provisioning template to recreate a modern page as a template on another SharePoint site.
The exported XML describes the page and its components. Site-specific links, images, web parts, and other dependencies may require adjustments on the destination site.
Open PowerShell and run `Connect-PnPOnline -Url "https://contoso.sharepoint.com/sites/source" -Interactive -ClientId "<app-client-id>"`, replacing the URL and client ID with your own.
Run `Export-PnPClientSidePage -Identity "MyPage.aspx" -Out "page-template.xml"`, replacing `MyPage.aspx` with the source page name.
Open `page-template.xml` in a text editor. In the exported page definition, set `PromoteAsTemplate="true"` and set `PageName` to a path under Templates, such as `Templates/MyTemplate.aspx`. Save the file.
Run `Connect-PnPOnline -Url "https://contoso.sharepoint.com/sites/destination" -Interactive -ClientId "<app-client-id>"`, then run `Apply-PnPProvisioningTemplate -Path "page-template.xml"`.
On the destination site, select New > Page and look for the imported template in the template picker. Create a test page and check its links, images, and web parts.

Create and edit Office documents with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility for an easier transition. It does not export or apply SharePoint page templates.

Frequently Asked Questions
Can I reuse a modern page template directly from another SharePoint site?
Modern page templates are site-specific. To recreate one on another site, export the page with PnP PowerShell, mark it as a template in the XML, and apply the provisioning template to the destination site.
Why is the imported page not appearing as a template?
Check the exported XML for `PromoteAsTemplate="true"` and a `PageName` under the Templates path. Reapply the XML, then check New > Page on the destination site.
Will images and web parts work automatically on the destination site?
Not necessarily. After creating a test page from the template, check images, links, and web parts for references or dependencies that still point to the source site.
What do I need to connect with PnP PowerShell?
Install PnP PowerShell, use an account with appropriate site permissions, and provide a configured Microsoft Entra application client ID with `Connect-PnPOnline -Interactive -ClientId`.




