SharePoint Online: Create a New Page from Template

Requirement: Create a new page from an existing page template in SharePoint Online.

SharePoint Online: How to Create new page from template?

A page template in SharePoint Online provides a consistent look and feel and reusability for any child pages created from it. Just navigate to your SharePoint Online page to copy, click on “New” and choose “Copy of this news post” from the menu.

create a page from existing page in sharepoint online

Similarly, If you have a page saved as a template, You can create a new page from it by picking the custom template you had created.

  • Click on “New” >> Page
  • Under the “Templates”, Select the page template we created
  • Click on “Create page”.
create page from template sharepoint online

PowerShell to Create a Page from Template in SharePoint Online

We can use PowerShell also to make new pages from the existing page template.

#Parameters
$SiteURL = "https://Crescent.sharepoint.com/sites/Marketing/"
$TemplateURL = "Templates/Bio.aspx"
$PageNames = @("Bio-Salaudeen.aspx","Bio-Sam.aspx","Bio-Mark.aspx","Bio-David.aspx")

#Connect to the Site
Connect-PnPOnline -Url $SiteURL -Interactive

#Get the Page template
$Template = Get-PnPClientSidePage $TemplateURL
   
#Create each page from Template
ForEach($Page in $PageNames)
{
    $Template.Save($Page)
}

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

2 thoughts on “SharePoint Online: Create a New Page from Template

Leave a Reply

Your email address will not be published.