Content Type
Content Type

Content types provide a means to manage the metadata and behavior of SharePoint list items, making it possible to store different types of content within the same library or list.

Content Type Schemas

Content type schemas are the base definitions of list items in Windows SharePoint Services. Content types provide a structured way to define item behaviors, such as required fields, retention, and workflow. Content types also allow SharePoint lists to be heterogeneous, storing items from different list types within a single list.

When new versions of a content type schema are deployed, the item schemas are installed in their respective galleries.

Possible scopes:

  • Farm: No

  • Web Application: No

  • Site Collection: Yes

  • Web Site: No

Activating Content Types

When you enable a Feature that contains content types, those content types are installed in the list of available content types for the respective scope.

Deactivating Content Types

When you deactivate a Feature that contains content types, the content type definition is removed from the list of available content types. This is equivalent to selecting a content type in the respectively scoped store and clicking Remove. In this way, you prevent new instances of those content types from being created. Existing data that was based on that content type continues to function.

When you install Windows SharePoint Services, a ctypes folder is created in the Template\Features directory. This folder contains a feature.xml file and a ctypeswss.xml file. The feature.xml file references the ctypeswss.xml file, which specifies fields for the native content types.

For information about content types and how they function within Windows SharePoint Services, see Content Types. For more information about the file format used in content types, see Content Type Definitions.

Community Content

Correction on Scope
Added by:austegard
As Andrew Connell states at http://www.wrox.com/WileyCDA/Section/id-305859.html:
"When creating site columns and content types, Scope can be Site or Web. However, when provisioning files, it should be Site."
why no feature based content types / fields in web scope?
Added by:adMsdn
I am somewhat new to MOSS dev, but I am seing that one can use the MOSS UI to create Content Types and Fields at the web (aka site) level. Whereas, if you try to create the same using a feature, you get an error. In a feature, you can only create fields and content types at the site (aka site collection) scope.

Why is that? Am I missing something?
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View