Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

AllowedTypes attribute does not work with base classes

Found in

EPiServer 7.6.0

Created

Jul 02, 2014

Updated

Feb 23, 2015

Area

Falcon/CMS/Edit UI

State

Closed, Fixed and Tested


Steps to reproduce

When defining a base class for the AllowedTypes attribute, this is not handled out of the box for the client. The reason for this is that we do not send information about base classes to the client unless there is a specifically registered UIDescriptor for the base class.

 

How to test:

 

Add the following attribute to the StandardPage in the Alloy templates (either MVC or Web Forms, does not matter):

 

[AllowedTypes(new Type[] { typeof(SitePageData) })]

public virtual ContentArea MainContentArea { get; set; }

 

Make sure that all pages can be dragged into this content area except the root page.