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

I'm exploring the use of Document Sets as a more managed approach to file handling (in the recordkeeping sense) in SharePoint.

The chief problem I have is that Document Sets are derived from Folders, and indeed it's possible to view Document Sets as a folder through Explorer View. But if I create a new Folder via WebDAV, it shows as a normal folder and not a Document Set. If I edit that folder's properties, I'm given the option to change the content type of the folder into a Document Set, but unfortunately this doesn't modify the behavior of the folder – to all intents and purposes it is still just a Folder despite having the other content type.

How can I prevent the use of Folders entirely in a Document Library? Alternatively, is there any way for a Document Set to be the default in WebDAV?

share|improve this question
1  
What happens if you try the "List Settings > Advanced Settings" and set "Make "New Folder" command available?" to false? –  Andy Burns May 26 '11 at 8:40
2  
That prevents creating folders in the SharePoint interface, but not in WebDAV. (Aside: even if you use PowerShell to remove the Folder content type from that Doc Library, the "New Folder" button still works so Folders are clearly somehow "special" to SharePoint.) –  GuruJ May 27 '11 at 10:15
    
Good to know, thanks! –  Andy Burns May 27 '11 at 10:20

1 Answer 1

Great question. You may want to consider creating an event receiver that is triggered whenever an item is created. If the content-type is folder then delete it.

share|improve this answer
    
Thanks for the down vote, care to provide feedback about what is incorrect? –  Muhimbi May 26 '11 at 8:06
    
Wasn't me who downvoted ... the solution sounds good to me but I'm not very familiar with event receivers. Any good tips on getting started? Also, would it be feasible to delete and automatically recreate as a Document Set? –  GuruJ May 27 '11 at 10:20
    
Sorry to link to a generic Google search, but a search for 'develop sharepoint 2010 event receiver' returns many valid entries. You can do whatever you like from an event receiver. google.co.uk/… –  Muhimbi May 27 '11 at 17:32

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.