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
Currently, we can make use of [AllowedTypes] attribute to narrow down the selection of items that can be used in ContentArea or ContentReference fields
[AllowedTypes(AllowedTypes=new[]{typeof(ArticlePageBase)})]publicvirtualContentAreaRelatedArticles{get;set;}[AllowedTypes(AllowedTypes=new[]{typeof(Image)})]
public virtual ContentReference Flag {get;set;}
It would be nice to have a tool that allows us to narrow it down in a smarter way, by introducing custom logic.
For example: I want to be able to allow only items that are located under certain node in the tree
This tool (an attribute?) should behave in the same way as [AllowedTypes] attribute, meaning that:
I can't drag&drop items that are not valid
I can't choose items from content tree that are not valid
I see a description of restrictions in the ContentArea UI control ("You can add these content types")
The text was updated successfully, but these errors were encountered:
Currently, we can make use of
[AllowedTypes]
attribute to narrow down the selection of items that can be used inContentArea
orContentReference
fieldsIt would be nice to have a tool that allows us to narrow it down in a smarter way, by introducing custom logic.
For example: I want to be able to allow only items that are located under certain node in the tree
This tool (an attribute?) should behave in the same way as
[AllowedTypes]
attribute, meaning that:The text was updated successfully, but these errors were encountered: