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
Hello!
I have a partial view macro to display a series of images from a media folder:
@{ var mediaId = Model.MacroParameters["mediaId"]; } @if (mediaId != null) { var media = Umbraco.Media(mediaId); var selection = media.Children("Image").OrderBy("SortOrder"); if (selection.Any()) { foreach (var item in selection) { <div class="slide"><img src="@item.umbracoFile" alt="@item.Name" /></div> } } }
How can I show the Images with their cropped Url?
Thanks in advance, Christoph
Hi ChristophC
You should be able to use the documentation for the image cropper here https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/image-cropper
Hope this helps :)
/Jan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Crop Images from Media Folder
Hello!
I have a partial view macro to display a series of images from a media folder:
How can I show the Images with their cropped Url?
Thanks in advance, Christoph
Hi ChristophC
You should be able to use the documentation for the image cropper here https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/image-cropper
Hope this helps :)
/Jan
is working on a reply...