Click to Rate and Give Feedback
Community Content
In this section
Statistics Annotations (3)
This page is specific to
The 2007 product release

Other versions are also available for the following:
Custom Information in Content Types

By design, content types are extensible. You can include custom information in content type definitions by adding special XML nodes. These XML nodes are represented by the XmlDocument Element (ContentType) element in the content type definition, and you can access them programmatically through the object model. A content type can include any number of XMLDocument elements. The contents of each XMLDocument element can conform to any given schema; however, they must be valid XML.

By including your custom information within XMLDocument elements in the content type, you can ensure that the custom information you need to implement your solution is encapsulated within and becomes part of the content type.

XMLDocument elements included in a site content type are also copied into any children based on that content type.

You can add this information to a content type in two ways:

If you make a change to an XML document and then perform a push-down operation, the entire XML document is overwritten in any child content types. For more information, see Updating Child Content Types.

XML Document Schemas Included with Windows SharePoint Services

Windows SharePoint Services 3.0 itself includes pre-defined XML documents you can use to specify custom forms for a content type, or to specify client-side redirects to different form pages for a content type.

FormTemplates Schema Overview

This schema enables you to specify the form templates used to display an item's Display, New, and Edit pages in the Windows SharePoint Services 3.0 user interface.

FormUrls Schema Overview

This schema enables you to specify client-side redirects to different Display, Edit, and New form pages for items of this content type.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Receivers Schema Overview      Pavel Shapel   |   Edit   |   Show History
This schema enables you to specify custom receiver class (to such events as ItemAdded, ItemFileMoved, ItemUpdated) for items of this content type.

<spe:Receivers xmlns:spe="http://schemas.microsoft.com/sharepoint/events">

<Receiver>
<Name>Workflow Library Item Added</Name>
<Type>ItemAdded</Type>
<SequenceNumber>1</SequenceNumber>
<Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>

<Class>Microsoft.SharePoint.Workflow.SPWorkflowLibraryEventReceiver</Class>
<Data />
<Filter />

</Receiver>

</spe:Receivers>

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker