StaticName property differs from list to ContentType (BUG)

Posted by Eric Bartels

Today I came across a really annoying bug inside SharePoint. Imagine you create a simple task list and you enable the management of content types. If you get into deeper analysis of the fields inside that list you will notice that the name of the “Status” field differs from the one used inside the content-type [...]

Disable the document-template for a list via code (DocumentTemplateUrl)

Posted by Eric Bartels

A current requirement was to disable the DocumentTemplateUrl for a SPList-instances. So the “New document” does not appear anymore inside the list. The trick So there is no such property available in the SPList-class which allows us to disable the DocumentTemplateUrl. In order to “get the property” we need to cast the object. // web [...]