AI OnAI Off
Not sure why you need to use both AllowedTypes and RestrictedTypes. But I think the issue may be cause of conflict between list of allowed types and list of restricted types.
I think just use RestrictedTypes setting is enough.
[AllowedTypes(RestrictedTypes = new[] { typeof(IFullWidthComponent) })]
Hmmm, I've also tried with this and am getting the same results
[AllowedTypes(RestrictedTypes = new[] { typeof(IFullWidthComponent) })]
Hmmm, I've also tried with this and am getting the same results
Hi Dave,
It’s likely due to the default behavior of the CMS which provides feedback to users about content type restrictions.
If you want to hide or remove this description, you might need to adjust the property editor settings or customize the way the property is rendered in the admin interface.
Hi Folks
We are adding some restricting some block types to certain content areas and have followed the guide https://docs.developers.optimizely.com/content-management-system/docs/restricting-content-types-in-properties, specifically the section 'Restrict based on base classes and interfaces'.
We have created an interface
and UIDescriptor
Applied it to the required blocks
and the required content areas.
The blocks are now restricted as intended, which is perfect. However the content area is now showing the following message underneath - Of the listed restricted types, only the two HomePage Hero and the Header Promo should be listed. In fact these are the only ones which are actually being restricted as the feature works fine aside from this. Is this a known issue and is there a work around to fix it?