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
foreach (var item in currentPage.Product.Images) { var imgSrc = item.GetCropUrl("x1"); <img src="@imgSrc" alt="" /> }
currentPage.Product.Images is multiple media picker in umbraco panel I want to get cropped image with GetCropUrl func. but it is not working.
I tried this as shown in the documentation but is not working
foreach (var item in currentPage.Product.Images) { var imgSrc = item.GetLocalCropUrl("x1"); <img src="@imgSrc" alt="" /> }
Hello, hakan! Which version of Umbraco do you use?
I'm using v8. I solved problem like this
@{ var typedMultiMediaPicker = ((IEnumerable<MediaWithCrops>)item.Product.ListingImages); foreach (var entry in typedMultiMediaPicker) { <img src="@entry.GetLocalCropUrl("x1")" class="c-item-A" /> } }
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
get cropped image fom multiple media picker
currentPage.Product.Images is multiple media picker in umbraco panel I want to get cropped image with GetCropUrl func. but it is not working.
I tried this as shown in the documentation but is not working
Hello, hakan! Which version of Umbraco do you use?
I'm using v8. I solved problem like this
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.