2

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 '14 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 '14 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 '15 at 21:08
  • There is, have you tried my solution? (see "Answer") – Fabian Feb 9 '15 at 14:14
  • Is a javascript that forces the two web parts to open the relevant folders an option? – Kasper Bo Larsen May 10 '18 at 7:16
1

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.

0

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:

http://webapp/sitecollection/site&RootFolder=selectedFolder&FolderCTID=FolderContentTypeID&View=UsedLibraryView

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. – ThinkB4Code Jun 8 '17 at 8:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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