-
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.
Fix #5335 - Multiple Media Picker not available as macro parameter
- Loading branch information
1 parent
e4f19f7
commit 1f2c4e3
Showing
3 changed files
with
33 additions
and
0 deletions.
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
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