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
Hi, Im sufre im being stupid here, but having some issues with getting an image showing my partial.
Im using the Nested Content + Doc Type Grid Editor in 7.5
Any ideas on how I can pull an image in?
Thanks
Martin
@inherits Umbraco.Web.Mvc.UmbracoViewPage @if(Model.HasValue("carousel")){ var items = Model.GetPropertyValue<IEnumerable<IPublishedContent>>("carousel"); if(items.Any()) { <div class="carousel"> @foreach(var item in items) { <div class="carousel-cell"> @if(item.HasValue("image")) { var image = Umbraco.TypedMedia(item.GetPropertyValue("image")); <img src="@image.Url"> } </div> } </div> } }
Sorry, long day. Ive got it. Im sure ive tried it before.
@if(item.HasValue("image")) { var image = item.GetPropertyValue<IPublishedContent>("image"); <img src="@image.Url"/> }
Hi Martin,
So did you solve you solution?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get Image in Foreach
Hi, Im sufre im being stupid here, but having some issues with getting an image showing my partial.
Im using the Nested Content + Doc Type Grid Editor in 7.5
Any ideas on how I can pull an image in?
Thanks
Martin
Sorry, long day. Ive got it. Im sure ive tried it before.
Hi Martin,
So did you solve you solution?
Thanks
is working on a reply...