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
Try using an editor descriptor, you can OverrideDefault with your own widget or look at other options available to remove a specific input
[EditorDescriptorRegistration(
TargetType = typeof(string),
UIHint = "HyperLink",
EditorDescriptorBehavior = EditorDescriptorBehavior.OverrideDefault)
]
internal class CustomLinkEditorDescriptor : EditorDescriptor
{
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
{
base.ModifyMetadata(metadata, attributes);
if (!metadata.EditorConfiguration.ContainsKey(("providers")))
{
return;
}
var providers = (metadata.EditorConfiguration["providers"] as IEnumerable<object>).ToList();
metadata.EditorConfiguration["providers"] = providers;
}
}
This gave me the following view
Our client uses their own DAM system and therefore wants to remove/hide the field Media from a Link editor where one adds Page/language/Media/Title/Email/External link/Remaining/Url
Has anyone being able to do it?