SharePoint Document Issues

Share SharePoint Modern Page Templates Between Sites

Adam DavisAdam Davis Nov 18, 2026 869 views

Question details

Reuse a SharePoint modern page template on another site.

Share SharePoint Modern Page Templates Between Sites
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.
Before you start

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.

Solution 1Recommended

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.

1
Connect to the source 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.

2
Export the page

Run `Export-PnPClientSidePage -Identity "MyPage.aspx" -Out "page-template.xml"`, replacing `MyPage.aspx` with the source page name.

3
Edit the template XML

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.

4
Apply it to the destination site

Run `Connect-PnPOnline -Url "https://contoso.sharepoint.com/sites/destination" -Interactive -ClientId "<app-client-id>"`, then run `Apply-PnPProvisioningTemplate -Path "page-template.xml"`.

5
Verify the template

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.

Export and apply the page template with PnP PowerShell
Check site-specific resources: The export may reference resources on the source site. Update those references or make the resources available to destination-site users before relying on the template.
Free Microsoft Office alternative

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.

Create documents that can be shared with colleagues alongside SharePoint contentOpen and edit Microsoft Word, Excel, and PowerPoint formatsWork in a familiar, easy-to-use interfaceUse a lightweight office suite for everyday document tasks
microsoft office alternative - wps office

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`.