How the heck do you get the URL from an ImageCropper datatype?!
Driving me nutso! Have a property on my document type called "homeThumb", datatype of "homeThumb"... thumbnail is likewise called "homeThumb". This doesn't work:
@foreach(var item in galleryFolder.Children){ var thumbUrl = item.GetImageCropperUrl("homeThumb", "homeThumb"); <img src="@thumbUrl"/> }
What am I doing wrong? "homeThumb" is the name of the docType property for the crop... Also tried supplying the property alias of the item being cropped ("photo")... Nothing. The loop works, just outputs nothing for @thumbUrl
How the heck do you get the URL from an ImageCropper datatype?!
Driving me nutso! Have a property on my document type called "homeThumb", datatype of "homeThumb"... thumbnail is likewise called "homeThumb". This doesn't work:
@foreach(var item in galleryFolder.Children){
var thumbUrl = item.GetImageCropperUrl("homeThumb", "homeThumb");
<img src="@thumbUrl"/>
}
What am I doing wrong? "homeThumb" is the name of the docType property for the crop... Also tried supplying the property alias of the item being cropped ("photo")... Nothing. The loop works, just outputs nothing for @thumbUrl
Here is code how i am doing that.
Here is "Front_Page_Slider" - the name of the cropper in the docType.
is working on a reply...