Quantcast
Channel: ActiveTopics
Viewing all articles
Browse latest Browse all 72689

How the heck do you get the URL from an ImageCropper datatype?!

$
0
0

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


Viewing all articles
Browse latest Browse all 72689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>