SharePoint / SharePoint/sp-dev-docs
Sharepoint create modern page from template via url
Open
@Ashlesha-MSFT is already working on this.
Since Mar 13, 2025.
feature-request
sharepoint-developer-support
- Dominant language
- PowerShell
- Stars
- 1.4k
- Forks
- 1.1k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 12
Description
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
- 💥 Internet Explorer
- 💥 Microsoft Edge
- 💥 Google Chrome
- 💥 FireFox
- 💥 Safari
- mobile (iOS/iPadOS)
- mobile (Android)
- not applicable
- other (enter in the "Additional environment details" area below)
Additional environment details
Issue description
Is there a parameter for "/_layouts/15/CreateSitePage.aspx" or "/_layouts/15/CreatePageFromTemplate.aspx" to create the page directly giving the source template?
I do not want the user to chose a template or create the blank page. I have found that we can use for example "/_layouts/15/CreateSitePage.aspx?promotedState=1" to directly create a news page. But can I have something like "Create a news page with this specific template"?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.