You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/media-picker-3.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,10 @@
4
4
5
5
`Returns: IEnumerable<MediaWithCrops>` or `MediaWithCrops`
6
6
7
-
This property editors returns a single `MediaWithCrops` item if the "Pick multiple items" Data Type setting is disabled or a collection if it is enabled.
7
+
This property editors returns one of the following:
8
+
9
+
- A collection (`IEnumerable<MediaWithCrops>`) if the **Pick multiple items** setting is enabled.
10
+
- A single `MediaWithCrops` item if the **Pick multiple items** setting is disabled.
8
11
9
12
## Data Type Definition Example
10
13
@@ -71,6 +74,23 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
71
74
}
72
75
```
73
76
77
+
#### Multiple enabled without Modelsbuilder to retrieve IEnumerable<IPublishedContent> data
While `MediaWithCrops` is the default return type, `IPublishedContent` may be used in backward-compatible implementations or when working directly with core APIs.
Copy file name to clipboardExpand all lines: 14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/media-picker-3.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,10 @@
6
6
7
7
`Returns: IEnumerable<MediaWithCrops>` or `MediaWithCrops`
8
8
9
-
This property editors returns a single `MediaWithCrops` item if the "Pick multiple items" Data Type setting is disabled or a collection if it is enabled.
9
+
This property editors returns one of the following:
10
+
11
+
- A collection (`IEnumerable<MediaWithCrops>`) if the **Pick multiple items** setting is enabled.
12
+
- A single `MediaWithCrops` item if the **Pick multiple items** setting is disabled.
10
13
11
14
## Data Type Definition Example
12
15
@@ -73,6 +76,23 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
73
76
}
74
77
```
75
78
79
+
#### Multiple enabled without Modelsbuilder to retrieve IEnumerable<IPublishedContent> data
While `MediaWithCrops` is the default return type, `IPublishedContent` may be used in backward-compatible implementations or when working directly with core APIs.
Copy file name to clipboardExpand all lines: 15/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/media-picker-3.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,10 @@
6
6
7
7
`Returns: IEnumerable<MediaWithCrops>` or `MediaWithCrops`
8
8
9
-
This property editors returns a single `MediaWithCrops` item if the "Pick multiple items" Data Type setting is disabled or a collection if it is enabled.
9
+
This property editors returns one of the following:
10
+
11
+
- A collection (`IEnumerable<MediaWithCrops>`) if the **Pick multiple items** setting is enabled.
12
+
- A single `MediaWithCrops` item if the **Pick multiple items** setting is disabled.
10
13
11
14
## Data Type Definition Example
12
15
@@ -73,6 +76,23 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
73
76
}
74
77
```
75
78
79
+
#### Multiple enabled without Modelsbuilder to retrieve IEnumerable<IPublishedContent> data
While `MediaWithCrops` is the default return type, `IPublishedContent` may be used in backward-compatible implementations or when working directly with core APIs.
0 commit comments