Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Please share the code of overridden property and any customization on that (if any). I tested overriding a property (Category) and just copied original get/set code and it was working.
Without seeing your code, it's hard to pinpoint what is the error, but making a property required may also be done like this:
[EditorDescriptorRegistration(TargetType = typeof(CategoryList))]
public class MakeCategoryRequiredEditorDescriptor : EditorDescriptor
{
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
{
base.ModifyMetadata(metadata, attributes);
if (metadata.PropertyName == "icategorizable_category")
{
metadata.IsRequired = true;
}
}
}
I have overridden properties to make them culture-specific and required.I cannot save/update after overridding them. e.g. I have overridden category property of PageData Class and miquantity, maxquantity of VariationContent Class.