I cant capture the Image Cropper value. Since its actually appearing as there is a value for the property alias. Please help me how to get value of a image cropper and how to get cropped url.
Attaching the screenshots below.
Declared Featured Product Image as Image Cropper
Value is captured while debugging, We can see this
This stuff is confusing. What's stored in the featuredProductImage is not an IPublishedContent but the json for the image cropper.
You need to give the URL helper an IpublishedContent (which in this case will be "item", the doc type property alias "featuredProductImage" and the crop alias "1920x1080" by the looks of it.
Image Cropper value cant capture.
I cant capture the Image Cropper value. Since its actually appearing as there is a value for the property alias. Please help me how to get value of a image cropper and how to get cropped url.
Attaching the screenshots below.
Declared Featured Product Image as Image Cropper
Value is captured while debugging, We can see this
Finally if i try to get value as Value
Hi,
This stuff is confusing. What's stored in the featuredProductImage is not an IPublishedContent but the json for the image cropper.
You need to give the URL helper an IpublishedContent (which in this case will be "item", the doc type property alias "featuredProductImage" and the crop alias "1920x1080" by the looks of it.
So try:
if that works you probably want something like:
It's much easier if you use strongly typed models - look into the models builder ;)
Thanks @Steve Morgan.. Its now working fine with your solution
is working on a reply...