SharePoint Tip of the Day – Don’t forget to set Inherits=”false” when you’re removing field reference(s) in your SP2010 content types


… or how something that worked in SharePoint 2007 is now not working as expected in SharePoint 2010.

Never minds, if I read carefully msdn documentation, it was kinda explained, I need to remove the inherits="true" (or stop using the built-in template for the content type creation !) or change it to inherits="false".

Optional Boolean. The value of this attribute determines whether the content type inherits fields from its parent content type when it is created.If Inherits is TRUE, the child content type inherits all fields that are in the parent, including fields that users have added.

If Inherits is FALSE or absent and the parent content type is a built-in type, the child content type inherits only the fields that were in the parent content type when SharePoint Foundation was installed. The child content type does not have any fields that users have added to the parent content type.

(source : http://msdn.microsoft.com/en-us/library/aa544268.aspx)

If you use some  RemoveFieldRef entries in your content type definition and you're still seeing the removed fields, then you now know why.

Advertisements