You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
`
The text was updated successfully, but these errors were encountered:
#1889 made the changes to use [BlockItemTypeAttribute] on [ContentType] to restrict the available Blocks in the Manager when adding Blocks to the ContentType.
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;
`
The text was updated successfully, but these errors were encountered: