-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6149 from umbraco/v8/feature/5335-multi-media-pic…
…ker-parameter-editor Fix #5335 - Multiple Media Picker not available as macro parameter
- Loading branch information
Showing
4 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/Umbraco.Web/PropertyEditors/ParameterEditors/MultipleMediaPickerParameterEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Umbraco.Core; | ||
using Umbraco.Core.Logging; | ||
using Umbraco.Core.PropertyEditors; | ||
|
||
namespace Umbraco.Web.PropertyEditors.ParameterEditors | ||
{ | ||
/// <summary> | ||
/// Represents a multiple media picker macro parameter editor. | ||
/// </summary> | ||
[DataEditor( | ||
Constants.PropertyEditors.Aliases.MultipleMediaPicker, | ||
EditorType.MacroParameter, | ||
"Multiple Media Picker", | ||
"mediapicker", | ||
ValueType = ValueTypes.Text)] | ||
public class MultipleMediaPickerParameterEditor : DataEditor | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="MultipleMediaPickerParameterEditor"/> class. | ||
/// </summary> | ||
public MultipleMediaPickerParameterEditor(ILogger logger) | ||
: base(logger) | ||
{ | ||
DefaultConfiguration.Add("multiPicker", "1"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters