SharePoint of the Day #53

An SPWeb object has two content type collections, AvailableContentTypes and ContentTypes. The AvailableContentTypes is read-only, though, so if you are updating content types through code, retrieve the content type from the ContenTypes collection.
You can learn more about content types in USP Journal Volume 1, Issue 2
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 12, 2009

Tags:

SharePoint of the Day #51

When you add a site content type to a list you are creating a copy of the content type for the list. This means you can make changes to the list content type without affecting the site content type.
This also means that if you update the site content type and do not opt to apply [...]

Posted under Developer, End User

This post was written by spotd on June 10, 2009

Tags:

SharePoint of the Day #43

Always remember to include the NamespaceURI of XmlDocument elements in content types. Otherwise SharePoint will not know which XmlDocument to use.
You can learn more about content types in USP Journal Volume 1, Issue 2
Delicious Digg This Post

Posted under Developer

This post was written by spotd on May 29, 2009

Tags:

SharePoint of the Day #22

When you are adding a FieldRef element to your content type you can override whether the column is shown in edit and new forms by setting the ShowInEditForm and ShowInNewForm.
However, setting the ShowInDisplayForm does not work.
You can learn more about content types in USP Journal Volume 1, Issue 2
Delicious Digg This [...]

Posted under Developer

This post was written by spotd on April 30, 2009

Tags:

SharePoint of the Day #8

When creating content types through CAML, always include at least an empty FieldRefs, even if you add no FieldRef child elements. That way you inherit columns from the parent content types.
You can learn more about content types in USP Journal Volume 1, Issue 2
Delicious Digg This Post

Posted under Developer

This post was written by spotd on April 10, 2009

Tags: