Cracking down on Folders in SharePoint
Much has been said for and against using folders in lists and document libraries. Leaving these discussions aside, what if you want to disable folders entirely in a list or library? This post describes how you can remove the New + Folder menu from lists and libraries, but unfortunately this does not stop folders being created using other techniques.
For example, in a document library with the New + Folder menu removed, you can still create a folder by:
- Use Actions + Open in Windows Explorer in the Document, Library, right-click and select New + Folder.
- In Microsoft Word, choose File + Save, navigate to the SharePoint document library, right-click and choose New + Folder.
So, I’ve been on a quest to suppress these capabilities, but so far with no success. I’ve tried:
- Using code and the class libraries to remove the hidden “Folder” content type. I can remove the content type, but folders can still be created.
- Set the EnableFolderCreation property for the SPList object to false (this just does the same as removing the New + Folder menu command).
- And other things…but to no success.
In many organisations imposing standards on how document libraries are used is important, and if a decision has been made not to use folders then this should be applied no matter how the user attempts to create the folder.
Any other ideas?