Upload .aspx site templates to sharepoint site

Fredrik Melander 0 Reputation points
2023-05-31T11:28:52.4466667+00:00

We have recently rolled out our internal sharepoint site for our employees and have our different departments set up in such a way that the manager for that department will be editing their own sharepoint site connected to a sharepoint hub.

In the sharepoint hub I have two site templates in .aspx format that I would like to have as a default template for each sharepoint site to make it easy for each department manager to edit and make news.

However this does not seem to be as easy as I thought it would be to just download and add an existing .aspx template to the individual sites.
Nor does it look like it wants to grab the template from another site even if I have the link to it.
It seems like Microsoft wants the user to make the template for each individual site manually and save it one by one.

Does anyone have an easy solution to this? I've managed to download the .aspx files so now I'd just have to place them in the individual sites.

I've read about going to classic view to access the library in sharepoint online but is that even an option in the Office 365 package? I cant seem to find anything pointing me towards a classic view for sharepoint in the admin center.

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-06-01T08:07:27.2733333+00:00

    Hi @Fredrik_OT

    Per my research, upload .aspx site templates to sharepoint modern site is not supported. It only support in SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 (classic sites only), and SharePoint Online (classic sites only). Please refer to the following document

    https://learn.microsoft.com/en-us/sharepoint/dev/general-development/save-download-and-upload-a-sharepoint-site-as-a-template

    As a workaround, I would recommend you to use Site Page API. Please follow the steps

    Here is the similar issue with yours

    https://learn.microsoft.com/en-us/answers/questions/1153417/cannot-upload-aspx-file-to-sharepoint-site-pages-u


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.