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

In Sharepoint 2010, is there any way to change the parent (or base) type of a Content Type after the relationship has been established?

share|improve this question
    
Is the new Content Type already in use in the site? –  Dave Wise Jul 13 '11 at 16:50
    
@Dave Wise - It isn't in use on the site yet. If it was though, I take it is a no-go? –  skaz Jul 13 '11 at 17:01

2 Answers 2

up vote 4 down vote accepted

Given the way that ContentTypeIDs are created, I would be very surprised if there was anything in the API that let you do this. However, since the Content Type is not in use yet, you should probably simply delete the current one and then recreate it based on the desired base type.

A Best Practice is to create your own Content Type derived from one of the SharePoint types and then use that as the base content type for all other custom content types you create. This lets you optionally add new columns to the Base Type without having to break all of your custom content types.

share|improve this answer
    
Are there any sharepoint types that don't have any columns that I have to show? It looks like List Content Types -> Item just has title, but I don't even want to have that if I can avoid it. –  skaz Jul 14 '11 at 13:32
    
You can mark the field as hidden for that content type in the UI. If you are creating your content types in Visual Studio then you can use the RemoveFieldRef option (panvega.wordpress.com/2009/01/14/…) –  Dave Wise Jul 14 '11 at 17:03

There is no API to support that kind of operation. I would stay away from anything which is not supported by SharePoint APIs. The Parent property of content type is Read-only so you cannot change the relatioship.

share|improve this answer

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.