Saturday, March 26, 2011

SharePoint Wiki page doesn't have Title field

Almost all the content types in SharePoint have the Title field, but one strange issue i encountered was while working on the wiki pages (with the Wiki Content type). The content type is called "Wiki Page".

This content type doesn't have the 'Title' field.

In future when dealing with the Wiki pages, mainly when accessing the Wiki page content programmatically, don't use SPListItem.Title. This will return System.ArgumentException.

To access the wiki page title, access the property SPListItem.Name