public override void ModifyMetadata(EPiServer.Shell.ObjectEditing.ExtendedMetadata metadata, IEnumerable <Attribute> attributes) { SelectionFactoryType = typeof(ColorSelectionFactory); ClientEditingClass = "alloy/editors/ColorPickerEditor"; base.ModifyMetadata(metadata, attributes); }
public override void ModifyMetadata(EPiServer.Shell.ObjectEditing.ExtendedMetadata metadata, IEnumerable <Attribute> attributes) { base.ModifyMetadata(metadata, attributes); var groupKeyAttribute = attributes.FirstOrDefault(a => typeof(TagsGroupKeyAttribute) == a.GetType()) as TagsGroupKeyAttribute; var cultureSpecificAttribute = attributes.FirstOrDefault(a => typeof(CultureSpecificAttribute) == a.GetType()) as CultureSpecificAttribute; var getaAttribute = attributes.FirstOrDefault(a => typeof(GetaTagsAttribute) == a.GetType()) as GetaTagsAttribute; metadata.EditorConfiguration["GroupKey"] = Helpers.TagsHelper.GetGroupKeyFromAttributes(groupKeyAttribute, cultureSpecificAttribute); metadata.EditorConfiguration["allowSpaces"] = getaAttribute?.AllowSpaces ?? false; metadata.EditorConfiguration["allowDuplicates"] = getaAttribute?.AllowDuplicates ?? false; metadata.EditorConfiguration["readOnly"] = getaAttribute?.ReadOnly ?? false; metadata.EditorConfiguration["caseSensitive"] = getaAttribute?.CaseSensitive ?? true; }
public override void ModifyMetadata(EPiServer.Shell.ObjectEditing.ExtendedMetadata metadata, IEnumerable <Attribute> attributes) { ClientEditingClass = "epiimage.editors.EPiImageGallery"; base.ModifyMetadata(metadata, attributes); }
public override void ModifyMetadata(EPiServer.Shell.ObjectEditing.ExtendedMetadata metadata, IEnumerable <Attribute> attributes) { ClientEditingClass = "alloy/editors/MultipleImagesEditor"; base.ModifyMetadata(metadata, attributes); }