using System.Collections.Generic; using Umbraco.Cms.Core.IO; namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration editor for the media picker value editor. /// public class MediaPicker3ConfigurationEditor : ConfigurationEditor { /// /// Initializes a new instance of the class. /// public MediaPicker3ConfigurationEditor(IIOHelper ioHelper) : base(ioHelper) { // configure fields // this is not part of ContentPickerConfiguration, // but is required to configure the UI editor (when editing the configuration) Field(nameof(MediaPicker3Configuration.StartNodeId)) .Config = new Dictionary { { "idType", "udi" } }; Field(nameof(MediaPicker3Configuration.Filter)) .Config = new Dictionary { { "itemType", "media" } }; } } }