Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Only allow a block in one specific content area

$
0
0

I have a situation where I have a block that should only appear in a few specific content areas. Meaning I want to prevent it from being used anywhere else. I know you can use the [AllowedTypes(...)] attribute on specific ContentArea properties to allow or restrict types, but short of setting [AllowedTypes(...)] with my particular block type as restricted on every single ContentArea in the entire solution, is there some way for me to indicate that the default behavior for this block is for it to be restricted?


Viewing all articles
Browse latest Browse all 9076

Trending Articles