Share via

Download Sharepoint Site Pages

John Sparks 111 Reputation points
2023-02-20T17:41:08.2433333+00:00

Hi. Is there any way of downloading all the site pages from the Site Pages Page library?

I can download items from document libraries fine but the Page Library doesnt have this option.

I'm using a modern site Online Sharepoint.

Thanks!

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows

Answer accepted by question author
  1. Emily Du-MSFT 51,986 Reputation points Microsoft External Staff
    2023-02-21T09:17:10.9766667+00:00

    Here is a method for you:

    1.Create a text column.

    2.Select the column -> Column settings -> Format this column -> Use following codes.

    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
      "elmType": "button",
      "style": {
        "border-radius": "5px",
        "margin": "5px 0px",
        "padding": "0px",
        "visibility": "=if([$File_x0020_Type] == '', 'hidden', 'visible')"
      },
      "attributes": {
        "class": "ms-bgColor-themePrimary"
      },
      "children": [
        {
          "elmType": "a",
          "txtContent": "Download",
          "style": {
            "text-decoration": "none",
            "padding": "10px 0px",
            "width": "100%"
          },
          "attributes": {
            "href": "= @currentWeb + '/_layouts/15/download.aspx?UniqueId=' + [$UniqueId]",
            "target": "_blank",
            "class": "ms-fontColor-white"
          }
        }
      ]
    }
    
    

    3.Result. Then click download button to download files.

    User's image


    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.

    20+ people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Martin H 0 Reputation points
    2023-09-19T13:20:22.7233333+00:00

    Hi,

    How do I reuse the file that I just downloaded, if I'm not a central admin, but have my own Sharepoint site.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

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