November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
You can take a look at the ContentTypeAvailabilityService. Should be fairly easy to inherit DefaultContentTypeAvailabilityService and filter that block type.
Here is an answer
Example of use:
[ContentType(AvailableInEditMode = false)]
public class B : BlockData
{
public virtual string Title { get; set; }
public virtual XhtmlString Text { get; set; }
}
We are creating a new non-visual block (i.e. no view) which will solely be referenced in other blocks as a property and would like to globally remove it from the list of available blocks when creating a new block in content areas. I know the AllowedTypes attribute can be used for this on a content area by content area basis, but I am hoping to find a way to apply it to all content areas without manually decorating each individual one in our entire codebase.