Skip to content

Commit 5d17d02

Browse files
committed
Incorporated suggestions
1 parent a15cebd commit 5d17d02

File tree

3 files changed

+42
-42
lines changed
  • 13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors
  • 14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors
  • 15/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors

3 files changed

+42
-42
lines changed

13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/media-picker-3.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
`Returns: IEnumerable<MediaWithCrops>` or `MediaWithCrops`
66

7-
This property editors returns:
7+
This property editors returns one of the following:
88

99
- A collection (`IEnumerable<MediaWithCrops>`) if the **Pick multiple items** setting is enabled.
1010
- 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
7474
}
7575
```
7676

77-
### Multiple enabled with Modelsbuilder
78-
79-
```csharp
80-
@{
81-
var typedMultiMediaPicker = Model.Medias;
82-
foreach (var entry in typedMultiMediaPicker)
83-
{
84-
<img src="@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
9078

9179
```csharp
9280
@using Umbraco.Cms.Core.Models
@@ -103,6 +91,18 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
10391
While `MediaWithCrops` is the default return type, `IPublishedContent` may be used in backward-compatible implementations or when working directly with core APIs.
10492
{% endhint %}
10593

94+
### Multiple enabled with Modelsbuilder
95+
96+
```csharp
97+
@{
98+
var typedMultiMediaPicker = Model.Medias;
99+
foreach (var entry in typedMultiMediaPicker)
100+
{
101+
<img src="@entry.MediaUrl()" style="width:200px" />
102+
}
103+
}
104+
```
105+
106106
### Multiple disabled without Modelsbuilder
107107

108108
```csharp

14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/media-picker-3.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
`Returns: IEnumerable<MediaWithCrops>` or `MediaWithCrops`
88

9-
This property editors returns:
9+
This property editors returns one of the following:
1010

1111
- A collection (`IEnumerable<MediaWithCrops>`) if the **Pick multiple items** setting is enabled.
1212
- 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
7676
}
7777
```
7878

79-
### Multiple enabled with Modelsbuilder
80-
81-
```csharp
82-
@{
83-
var typedMultiMediaPicker = Model.Medias;
84-
foreach (var entry in typedMultiMediaPicker)
85-
{
86-
<img src="@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
9280

9381
```csharp
9482
@using Umbraco.Cms.Core.Models
@@ -105,6 +93,18 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
10593
While `MediaWithCrops` is the default return type, `IPublishedContent` may be used in backward-compatible implementations or when working directly with core APIs.
10694
{% endhint %}
10795

96+
### Multiple enabled with Modelsbuilder
97+
98+
```csharp
99+
@{
100+
var typedMultiMediaPicker = Model.Medias;
101+
foreach (var entry in typedMultiMediaPicker)
102+
{
103+
<img src="@entry.MediaUrl()" style="width:200px" />
104+
}
105+
}
106+
```
107+
108108
### Multiple disabled without Modelsbuilder
109109

110110
```csharp

15/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/media-picker-3.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
`Returns: IEnumerable<MediaWithCrops>` or `MediaWithCrops`
88

9-
This property editors returns:
9+
This property editors returns one of the following:
1010

1111
- A collection (`IEnumerable<MediaWithCrops>`) if the **Pick multiple items** setting is enabled.
1212
- 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
7676
}
7777
```
7878

79-
### Multiple enabled with Modelsbuilder
80-
81-
```csharp
82-
@{
83-
var typedMultiMediaPicker = Model.Medias;
84-
foreach (var entry in typedMultiMediaPicker)
85-
{
86-
<img src="@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
9280

9381
```csharp
9482
@using Umbraco.Cms.Core.Models
@@ -105,6 +93,18 @@ Global crops are configured on the Image Cropper property of the Image Media Typ
10593
While `MediaWithCrops` is the default return type, `IPublishedContent` may be used in backward-compatible implementations or when working directly with core APIs.
10694
{% endhint %}
10795

96+
### Multiple enabled with Modelsbuilder
97+
98+
```csharp
99+
@{
100+
var typedMultiMediaPicker = Model.Medias;
101+
foreach (var entry in typedMultiMediaPicker)
102+
{
103+
<img src="@entry.MediaUrl()" style="width:200px" />
104+
}
105+
}
106+
```
107+
108108
### Multiple disabled without Modelsbuilder
109109

110110
```csharp

0 commit comments

Comments
 (0)