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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco 8, insert media image type property value
You should be able to use:
is working on a reply...