Epi服务器 - 使内容区域特定于块

Ziv*_*man 1 model-view-controller episerver episerver-8

我想实现以下目标 -

构建一个包含3个不同ContentArea的页面类型,并且用户只能在每个区域中放置特定的块类型.

例如 - ContentArea1只能接受块类型"BlockType1",ContentArea2只能接受"BlockType2"等等.(它不需要是通用的,我可以指定硬编码哪种类型应该适合每个内容区域.

有可能实现吗?也许有另一种方式?(我知道你可以用块类型创建一个属性,但我想在不同的地方使用相同的块)

ps:使用EPI-SERVER 8

小智 5

从EPiServer 8.0版开始,对AllowedTypes有更好的支持.

该功能在版本8之前也可用,但更为有限.

简而言之,您使用AllowedTypes属性修饰ContentArea属性,EPiServer负责其余部分.

在这里阅读更多相关信息:

http://world.episerver.com/blogs/Ben-McKernan/Dates/2015/2/the-new-and-improved-allowed-types/