Adding a property named Item on a content type causes problems

Found in

EPiServer.CMS.Core 7.0.586.0

Fixed in

EPiServer.CMS.Core 11.1.0


Apr 13, 2017


Nov 21, 2017


CMS Core


Closed, Fixed and tested


We should make sure to throw an exception at initialization time if someone created a property named Item on a content type. See related bug.

Steps to reproduce
1. Create a new Alloy site.
2. Create a new property with name Item. For example, in the standardpage like this:

GroupName = SystemTabNames.Content,
Order = 320)]
public virtual string Item
{ get; set; }

3. Try to run the site.
4. You get an error.

Adding a property named Item on a Block type causes no problems initially when using them as a local block. We should still make the same fix for block, because it causes problems in many cases (for example, when using it as a dynamic block).