27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
using Umbraco.Core;
|
|
using Umbraco.Core.PropertyEditors;
|
|
|
|
namespace Umbraco.Web.PropertyEditors
|
|
{
|
|
/// <summary>
|
|
/// Represents the configuration for the media picker value editor.
|
|
/// </summary>
|
|
public class MediaPickerConfiguration : IIgnoreUserStartNodesConfig
|
|
{
|
|
[ConfigurationField("multiPicker", "Pick multiple items", "boolean")]
|
|
public bool Multiple { get; set; }
|
|
|
|
[ConfigurationField("onlyImages", "Pick only images", "boolean", Description = "Only let the editor choose images from media.")]
|
|
public bool OnlyImages { get; set; }
|
|
|
|
[ConfigurationField("disableFolderSelect", "Disable folder select", "boolean", Description = "Do not allow folders to be picked.")]
|
|
public bool DisableFolderSelect { get; set; }
|
|
|
|
[ConfigurationField("startNodeId", "Start node", "mediapicker")]
|
|
public Udi StartNodeId { get; set; }
|
|
|
|
[ConfigurationField(Core.Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, "Selecting this option allows a user to choose nodes that they normally don't have access to.", "boolean")]
|
|
public bool IgnoreUserStartNodes { get; set; }
|
|
}
|
|
}
|