Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
@{ var i = 0; var typedMultiMediaPicker = Model.Value<IEnumerable<IPublishedContent>>("slider"); foreach (var item in typedMultiMediaPicker) { var itemClass = i++ == 0 ? "carousel-item active" : "carousel-item"; <div class="@itemClass"> <img class="d-block w-100" src="@item.Url" alt=""> </div> // <h1>GET THE VALUE HERE</h1> } }
You should be able to use:
<h1>@(item.Value<string>("heading"))</h1>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Umbraco 8, insert media image type property value
You should be able to use:
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.