Skip to content

Restrict BlockItemType for ContentType as in Pages and Posts #1841

Open
@ClausRogisch

Description

@ClausRogisch

It would be nice, for Content implementing IBlockContent, to be able to restrict the usable Blocks, as is implemented for Pages and Posts via the BlockItemTypeAttribute

In the ContentTypeBuilder, possibility to adapt code for PageType to ContentType (and maybe also for ContentGroup)
`
// Add block types
var blockTypes = type.GetCustomAttributes();
foreach (var blockType in blockTypes)
{
pageType.BlockItemTypes.Add(blockType.Type.FullName);
}

return pageType;
`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions