
An alternative approach is to use REST API to generate the tree structure. This approach has been used elsewhere.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi there
On a SharePoint Online site home page, how to show all top-level folders/files from all document libraries in a tree-view-like structure?
(Permissions should be respected)
Thanks.
An alternative approach is to use REST API to generate the tree structure. This approach has been used elsewhere.
Hi @frob ,
SharePoint currently does not support displaying all top-level folders/files in all document libraries in a tree structure on the SharePoint Online site home page.
You can only have folders and files displayed in a tree-like structure in the classic navigation pane (as shown in the image below).
Here are steps:
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.
Hi @ PauldeJong-6993, I think that is a good idea. Are you able to suggest any links to any guides or tutorials for using REST API in this way for SharePoint Online, please?
Also, please post your response as an answer, so I can mark it as Accepted. As of now, I do not see a way to accept your answer.
Thank you so much.
"An alternative approach is to use REST API to generate the tree structure. This approach has been used elsewhere." See above screenshot.
REST API references: check out
https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints
and
https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?tabs=csom