针对多个具有区分块的国家/地区的处理(使用episerver9.1 C#)
可以使用该属性装饰控制器,并将其继承属性设置为true:针对多个具有区分块的国家/地区的处理(使用episerver9.1 C#),c#,episerver,C#,Episerver,可以使用该属性装饰控制器,并将其继承属性设置为true: public class EpiBlockHungary : EpiBlock { [Display(Name = "SomeHungarianData", GroupName = Global.GroupNames.Settings.General)] [EditorDescriptor(EditorDescriptorType = typeof(RolesEditorDescriptor))] public v
public class EpiBlockHungary : EpiBlock
{
[Display(Name = "SomeHungarianData", GroupName = Global.GroupNames.Settings.General)]
[EditorDescriptor(EditorDescriptorType = typeof(RolesEditorDescriptor))]
public virtual string SomeHungarianData { get; set; }
}
[模板描述符(继承=true)]
公共类控制器:BlockControllerBase
{
}
public class EpiBlockHungary : EpiBlock
{
[Display(Name = "SomeHungarianData", GroupName = Global.GroupNames.Settings.General)]
[EditorDescriptor(EditorDescriptorType = typeof(RolesEditorDescriptor))]
public virtual string SomeHungarianData { get; set; }
}
[TemplateDescriptor(Inherited=true)]
public class Controller : BlockControllerBase<EpiBlock>
{
}