How do you set "Allow management of content types?" to "Yes" within a Content Type or List Definition?

up vote 7 down vote accepted

This can be done either by setting EnableContentType=true in the list definition or in the feature activation event we can set the attribute. Please refer the below links. They will definitely help you in solving your problem.

Enable managing content types by default at list creation

Creating SharePoint 2010 List Definitions in Visual Studio 2010

A Quicker Way to Create Custom SharePoint List Templates

  • Great help! Tank you! Best regards, Tim – Tim Aug 25 '11 at 7:43

This says to "toggle the SPList ContentTypesEnabled property from False to True".

Just toggle the SPList ContentTypesEnabled property from False to True. That enables the use of multiple content types on the list.

EnableContentTypes="TRUE" instead of EnableContentType="TRUE" (note the s)

Go to Library Settings>Advanced settings, then set Allow management of content types? to yes.

  • Would you please brief out your answer. One liner sometimes do not help future visitors. – Asad Refai Oct 5 '15 at 5:28

The way I do it is I set the ListCreationInfo and then create the list and enable ContentTypes:

ListCreationInformation creationInfo = new ListCreationInformation(); creationInfo.Title = ListManager.ListTitle; creationInfo.TemplateType = (int)ListtemplateType.Annoucements;

List list = web.Lists.Add(creationInfo); list.Description = ListManager.ListDescription; list.ContentTypesEnabled = true;

New contributor
Zaren Wienclaw is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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