Usually you put a WebPart for a Document Library on a page, and this WebPart shows the content of a specific library, starting in root. Now I have some subfolders like "Marketing", "Finance" etc and I want the WebPart to show all Files and Folders under "Marketing" (without first browsing there).

I know there are solutions how I can display all files in a flat list, but I want to preserve the structure (subfolders).

Trying this solution failed (not SP 2013 compatible?), any other suggestions?

Thank you very much!

  • Have you found a solution to this, as I am also looking for it (SharePoint 2013, not 2010 or any lesser versions). Thanks. joe
    – user28355
    Jun 4, 2014 at 17:31
  • Nah, not yet. It seems that there is no solution out-of-the-box. I haven't found a third-party custom webpart which has this functionality.
    – Fabian
    Jun 6, 2014 at 9:40
  • Is there not a way to get a WebPart to open the doc library up directly into a subfolder?
    – user39341
    Feb 4, 2015 at 21:08
  • There is, have you tried my solution? (see "Answer")
    – Fabian
    Feb 9, 2015 at 14:14
  • Is a javascript that forces the two web parts to open the relevant folders an option? May 10, 2018 at 7:16

2 Answers 2


You can simply use Search Query WebPart, where you define:

There is only one thing and that you will see files which are in index, so there can be "show latency" when you add new file if you havent enabled Continuous Crawling.

Or you can use IFrame WebPart, where you will have a look into Library folder.


I found a solution for this (maybe more a workaround).

  1. Add the WebPart to your page, save it.
  2. In your WebPart, navigate to the desired subfolder and open it.
  3. Take now a look at the URL of your page. It changed. If you use THIS URL (eg. put it in your Navigation) your page will open and the WebPart opens exactly the subfolder!

The URL combines several Informations:


Using this Link will navigate you directly to the page and opens the WebPart in selected subfolder.

  • 1
    This could be one possible work around. But in scenario like having two document library web part on same page will break. Jun 8, 2017 at 8:06

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.