I'm using the Publishing feature of SharePoint. I have a custom Content Type that inherits from the ArticlePage Content Type, and is bound to the Pages list of a given site. My custom Content Type uses a custom display name for one of the columns. When I'm querying the Page list and iterating over the items using a repeater, accessing my custom column with
I get an error:
Column 'CustomDisplayName' does not exist. It may have been deleted by another user.
If I use the internal name it works fine. I have verified that the given page has my custom Content Type, and I have verified that my custom Content Type lists the column with my custom display name.
Client code expects there to be a 'CustomDisplayName' column but it doesn't know if the 'CustomDisplayName' column overrides a base column or defines a new. E.g. "CustomPreamble" may override the ArticlePage's Preamble column, or it may reference some other column, hence I cannnot use "Preamble" to access it.
Any clues as to what's going on?