While investigating SPList multiple content types - "Column does not exist" error, I discovered something odd. Background:
- I'm using the SharePoint Publishing feature
- I have a custom ContentType, NewsPage, that extends ArticlePage
- The NewsPage ContentType adds a field - NewsCategory - with a static name of "NewsCategory" and a display name of "Nyhetskategori" (swedish)
- I have a site definition for a News site, and the NewsPage ContentType is bound to the Pages list of the News site
If I go to "Site Actions" -> "View All Site Content", open the "Pages" list/documnt library, and then go to "Library Settings" there are two sections:
Content Types - lists the "Page", "Article Page" and "News Page" types, as expected
Columns - lists all columns from all the Content Types, but they are listed with their static names, not their display names, as I've seen on other sharepoint installations. Is there any way to control this? I want to be able to iterate over the Pages list and get pageListItem["Nyhetskategori"], i.e. access the field using the display name.