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

How can I allow a user to edit the Title of folder separately from the folder's name? I've done it by accident, messing with the content types.

I found that I could add a custom content type that inherits from folder, but then there is the drop-down that lets you pick which type of folder. I'd like to keep it simple. Also, I need to programmatically deploy such a change.

share|improve this question
    
Have you checked the Permission on the folder? –  Daniel Ziga Jan 24 '12 at 22:33

1 Answer 1

up vote 2 down vote accepted

If you enable management of content types on your list folder should show up as an option (Assuming WSS3 like in your tag - this no longer works in 2010) From there you can add fields to your folder or in the case of title, make it required or optional instead of hidden.

All of these settings should be accessible through the API as well.

  • SPList.ContentTypesEnabled should allow you to enable management of content types.
  • SPList.ContentTypes["Folder"].FieldLinks["Title"].Hidden should allow you to flip hidden to false

I have not tested this but theoretically it should work. Let me know how it goes.

share|improve this answer
    
Thanks, I'll give it a go. –  oglester Jan 25 '12 at 13:43
1  
To finish the code::> lib = GetLib(web, libname); lib.ContentTypes["Folder"].FieldLinks["Title"].Hidden=false; lib.ContentTypes["Folder"].Update(); –  oglester Jan 25 '12 at 14:57
    
Yeah that update call would be important. Good catch there. Glad I could help. –  SpartanDonut Jan 25 '12 at 15:01

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.