2019-10-28 13:25:05 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using Umbraco.Core;
|
2017-05-12 14:49:44 +02:00
|
|
|
|
using Umbraco.Core.Logging;
|
2019-10-28 13:25:05 +01:00
|
|
|
|
using Umbraco.Core.Models.Editors;
|
2017-05-12 14:49:44 +02:00
|
|
|
|
using Umbraco.Core.PropertyEditors;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.PropertyEditors
|
|
|
|
|
|
{
|
2019-06-07 17:59:38 +01:00
|
|
|
|
[DataEditor(
|
|
|
|
|
|
Constants.PropertyEditors.Aliases.MultiNodeTreePicker,
|
|
|
|
|
|
"Multinode Treepicker",
|
|
|
|
|
|
"contentpicker",
|
|
|
|
|
|
ValueType = ValueTypes.Text,
|
|
|
|
|
|
Group = Constants.PropertyEditors.Groups.Pickers,
|
|
|
|
|
|
Icon = "icon-page-add")]
|
2018-03-19 18:39:34 +01:00
|
|
|
|
public class MultiNodeTreePickerPropertyEditor : DataEditor
|
2017-05-12 14:49:44 +02:00
|
|
|
|
{
|
2018-03-19 18:39:34 +01:00
|
|
|
|
public MultiNodeTreePickerPropertyEditor(ILogger logger)
|
2017-05-12 14:49:44 +02:00
|
|
|
|
: base(logger)
|
2018-02-05 17:48:54 +01:00
|
|
|
|
{ }
|
2017-05-12 14:49:44 +02:00
|
|
|
|
|
2018-02-15 14:49:32 +01:00
|
|
|
|
protected override IConfigurationEditor CreateConfigurationEditor() => new MultiNodePickerConfigurationEditor();
|
2019-10-28 13:25:05 +01:00
|
|
|
|
|
|
|
|
|
|
protected override IDataValueEditor CreateValueEditor() => new MultiNodeTreePickerPropertyValueEditor(Attribute);
|
|
|
|
|
|
|
2019-11-27 20:24:16 +00:00
|
|
|
|
public class MultiNodeTreePickerPropertyValueEditor : DataValueEditor
|
2019-10-28 13:25:05 +01:00
|
|
|
|
{
|
|
|
|
|
|
public MultiNodeTreePickerPropertyValueEditor(DataEditorAttribute attribute): base(attribute)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2017-05-12 14:49:44 +02:00
|
|
|
|
}
|
2019-10-28 13:25:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
2017-07-20 11:21:28 +02:00
|
|
|
|
}
|