Content Type

Adds a content type to the current selected feature

Arguments

Name Description
Content Type Settings
Parent Content Type Required. New content type will be derived from the selected parent content type.
Name Required Text. Specifies the content type name.
Description Optional Text. Provides a description for the content type, to display in the Windows SharePoint Services user interface.
Group Optional Text. Specifies the content type group to which the content type is assigned. Content type groups are user-defined groups that help you organize your columns into logical categories.
Fields
Fields Optional. Specifies a column to reference in this content type.
Remove Fields Optional. Specifies a column reference, included in the parent content type, to be removed from this content type.
Document Template
Document Template Optional Text. Document template which is used for creation of new items based on this content type.
Place template in _layouts folder for easier upgrade Optional Boolean. If checked, the selected document template will be placed inside the /_layouts/ in SharePoint and can be updated easier in the future. Otherwise the document template will be stored in the database.
Event Receivers
Item Adding Optional Boolean. If checked an event handler for ItemAdding event is added to the content type.
Item Added Optional Boolean. If checked an event handler for ItemAdded event is added to the content type.
Item Updating Optional Boolean. If checked an event handler for ItemUpdating event is added to the content type.
Item Updated Optional Boolean. If checked an event handler for ItemUpdated event is added to the content type.
Item Deleting Optional Boolean. If checked an event handler for ItemDeleting event is added to the content type.
Item Deleted Optional Boolean. If checked an event handler for ItemDeleted event is added to the content type.
Custom Forms
Custom Display Form Optional Boolean. If checked a custom form for the display mode of the content type is added.
Custom Edit Form Optional Boolean. If checked a custom form for the edit mode of the content type is added.
Custom New Form Optional Boolean. If checked a custom form for the creation of the content type is added.
Advanced Settings
Content Type ID Required Text. Specifies the content type ID of the content type.
Content Type Version Reserved for future use.
Hidden Optional Boolean. TRUE to define the content type as hidden. If you define a content type as hidden, Windows SharePoint Services does not display that content type on the New button in list views. If you do not include this attribute, Windows SharePoint Services treats the content type as if this attributes was set to FALSE.
Read Only Optional Boolean. TRUE to define the content type as read-only. If you do not include this attribute, Windows SharePoint Services treats the content type as if this attributes was set to FALSE.
Sealed Optional Boolean. TRUE to define the content type as sealed. You must have site collection administrator rights to unseal and edit a content type defined as sealed. If you do not include this attribute, Windows SharePoint Services treats the content type as if this attributes was set to FALSE.

References

Related Recipes

Authors

  • Torsten Mandelkow

Version history

  • 1.0 Initial Recipe