Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way in Sharepoint OOTB to show all the documents and folders in and below a folder or Document library?

For example, If I have the following structure:

- http://site/Document Library/File.ext 
- http://site/Document Library/Folder1/File1.ext
- http://site/Document Library/Folder1/Folder2/File2.ext

When on the following page: http://site/Document Library/Folder/

I get the following items in my view:

  • Folder2
  • File1.ext
  • File2.ext
share|improve this question
add comment

3 Answers 3

You simply need to go under Folders section in your view, and in the Folder or Flat radio-buttons choosed the option "Show all items without folders"

share|improve this answer
    
I also want the folders displayed. This show all items without folders ONLY shows files but I want a flat view with folders and files. –  Realistic Sep 12 '12 at 21:36
    
No can do with out-of-the-box Views. In other pages you could use SPD to build you a view, but not easy with no-code solution (CAML Query skills required). –  C. Marius - MVP Sep 13 '12 at 6:31
add comment

It's a bit redundant, but you could create a column to hold the name of the folder and group on that column in a flat view. This would give you the folder view you need while giving you the ability to expand and collapse those folders as necessary.

share|improve this answer
add comment

You can also change the SPViewScope in C#:

SPView view = list.Views["YourViewName"];
view.Scope = SPViewScope.RecursiveAll; //more ViewScopes are available
view.Update()
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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