in

Dot Net Mafia

Group site for developer blogs dealing with (usually) .NET, SharePoint 2013, SharePoint 2010, Office 365, SharePoint Online, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog

Syndication

Archives

Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for SharePoint 2013, Office 365 / SharePoint Online and Visual Studio 2013.

A Note on Content Type Inheritance

I ran into this issue a while back so I thought I would post on it.  I had a scenario where we wanted to create a simple content type to use as a base content type for all future content types at a comapany (i.e.: Company Base Document).  At the time we did not know what site columns we wanted included, so we didn't include any FieldRefs to site columns.  We just inherited from this type into another more project specific document type.  It seemed like a good idea at the time, but it of course caused a number of problems.

It appears that if you do not specify any FieldRef elements in your content type definition that any other fields further up in the inheritance tree will also not get inherited.  This caused things like the Title field (inherited from item) to not be included in our content type.  The lesson to be learned here is a) plan better and have your fields defined first and b) make sure that you always specify at least one FieldRef in your content type definition.  I am sure there is a technical reason for this, but I thought I would throw it out there in case someone else runs into the issue in the future.

Also if you haven't checked out my latest addon for Enterprise Search, go check it out.  I am pretty excited about it and the users I have shown it to so far have found a lot of value in it.

Comments

 

Links (11/5/2008) « Steve Pietrek - Everything SharePoint said:

Pingback from  Links (11/5/2008) « Steve Pietrek - Everything SharePoint

November 5, 2008 7:57 PM
 

Ableiten von Inhaltstypen (ContentTypes): Bug im SharePoint | Gaussian Blur said:

Pingback from  Ableiten von Inhaltstypen (ContentTypes): Bug im SharePoint | Gaussian Blur

September 8, 2009 5:15 AM
 

lastas said:

actually you just need an empty <fieldrefs></fieldrefs> tag, with no fieldrefs in it to work.

June 10, 2010 2:26 AM

Leave a Comment

(required)  
(optional)
(required)  
Add

About CoreyRoth

Corey Roth is an Applications Architect at Infusion specializing in ECM and Search.
2012 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems