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
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
`Returns: IEnumerable<MediaWithCrops>` or `MediaWithCrops`
6
6
7
-
This property editors returns:
7
+
This property editors returns one of the following:
8
8
9
9
- A collection (`IEnumerable<MediaWithCrops>`) if the **Pick multiple items** setting is enabled.
10
10
- A single `MediaWithCrops` item if the **Pick multiple items** setting is disabled.
@@ -74,19 +74,7 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
74
74
}
75
75
```
76
76
77
-
### Multiple enabled with Modelsbuilder
78
-
79
-
```csharp
80
-
@{
81
-
vartypedMultiMediaPicker=Model.Medias;
82
-
foreach (varentryintypedMultiMediaPicker)
83
-
{
84
-
<imgsrc="@entry.MediaUrl()"style="width:200px"/>
85
-
}
86
-
}
87
-
```
88
-
89
-
### Multiple enabled without Modelsbuilder to retrieve IEnumerable<IPublishedContent> data
77
+
#### Multiple enabled without Modelsbuilder to retrieve IEnumerable<IPublishedContent> data
90
78
91
79
```csharp
92
80
@usingUmbraco.Cms.Core.Models
@@ -103,6 +91,18 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
103
91
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
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
`Returns: IEnumerable<MediaWithCrops>` or `MediaWithCrops`
8
8
9
-
This property editors returns:
9
+
This property editors returns one of the following:
10
10
11
11
- A collection (`IEnumerable<MediaWithCrops>`) if the **Pick multiple items** setting is enabled.
12
12
- A single `MediaWithCrops` item if the **Pick multiple items** setting is disabled.
@@ -76,19 +76,7 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
76
76
}
77
77
```
78
78
79
-
### Multiple enabled with Modelsbuilder
80
-
81
-
```csharp
82
-
@{
83
-
vartypedMultiMediaPicker=Model.Medias;
84
-
foreach (varentryintypedMultiMediaPicker)
85
-
{
86
-
<imgsrc="@entry.MediaUrl()"style="width:200px"/>
87
-
}
88
-
}
89
-
```
90
-
91
-
### Multiple enabled without Modelsbuilder to retrieve IEnumerable<IPublishedContent> data
79
+
#### Multiple enabled without Modelsbuilder to retrieve IEnumerable<IPublishedContent> data
92
80
93
81
```csharp
94
82
@usingUmbraco.Cms.Core.Models
@@ -105,6 +93,18 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
105
93
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
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
`Returns: IEnumerable<MediaWithCrops>` or `MediaWithCrops`
8
8
9
-
This property editors returns:
9
+
This property editors returns one of the following:
10
10
11
11
- A collection (`IEnumerable<MediaWithCrops>`) if the **Pick multiple items** setting is enabled.
12
12
- A single `MediaWithCrops` item if the **Pick multiple items** setting is disabled.
@@ -76,19 +76,7 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
76
76
}
77
77
```
78
78
79
-
### Multiple enabled with Modelsbuilder
80
-
81
-
```csharp
82
-
@{
83
-
vartypedMultiMediaPicker=Model.Medias;
84
-
foreach (varentryintypedMultiMediaPicker)
85
-
{
86
-
<imgsrc="@entry.MediaUrl()"style="width:200px"/>
87
-
}
88
-
}
89
-
```
90
-
91
-
### Multiple enabled without Modelsbuilder to retrieve IEnumerable<IPublishedContent> data
79
+
#### Multiple enabled without Modelsbuilder to retrieve IEnumerable<IPublishedContent> data
92
80
93
81
```csharp
94
82
@usingUmbraco.Cms.Core.Models
@@ -105,6 +93,18 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
105
93
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