1

I want to display subfolders from site B on site A.

I have tried the 'embed web part', but I can only embed the root folder('documents library') because I can't find a complete URL for subfolders.

How can I show the specific subfolder in my page?

2 Answers 2

1

You can embed any subfolder from document library using embed web part. You just need to get the correct URL of your subfolder like below:

  1. Go to subfolder you want to embed
  2. Click on Open the details pane (i icon) from command bar (top right side)
  3. Copy direct link using the copy icon highlighted in below image

enter image description here

Generally, URL of subfolder is like:

https://<tenant>.sharepoint.com/sites/<siteName>/<libraryName>/folder/subfolder

Then you can embed it using iframe code like below:

<iframe src="https://<tenant>.sharepoint.com/sites/SPConnect/Shared%20Documents/folder1/folder2" title="Folder from site B" width="100%" height="300"></iframe>

Output:

enter image description here

Documentation: Add content to your page using the Embed web part

1
  • 1
    Many thanks for your help! This method looks good!
    – Mark YU
    Aug 6, 2021 at 15:43
0

Step1: Copy the direct path of the subfolder in details panel:

enter image description here

Step2:Add a Highlighted content web part in site A, choose Custom query, and fill in the path with direct link of the subfolder:

enter image description here

1
  • Thanks for your help! However, this method cannot correctly display the subfolders(Test1/ Test2) in this subfolder(Test 1)
    – Mark YU
    Aug 6, 2021 at 15:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.