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 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 existing page template.

#Parameters
$SiteURL = "https://crescentintranet.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 -UseWebLogin

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

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply