What would the criteria be, a completely empty cropper (no image at all) or something else? Also what would you display, maybe a http://placehold.it/ or something else?
Sorry to jump on an old thread but I think I am also looking for the same solution.
I'm seeing some weird behavior where GetCropUrl("propertyAlis", "cropAlias") is returning a malformed URL string if it doesn't match a cropAlias due to no image being uploaded.
I would expect it return null or it would be nice to specify a default/fallback.
I haven't had chance to dig around the Umbraco src but if I find anything I will update everyone here
GetCropUrl overload fallback
Can anyone let me know an easy way to create a fallback for GetCropUrl.
I'm looking for equivalent for media file as GetPropertyValue(string alias, string defaultValue) is for content?
Hi John,
What would the criteria be, a completely empty cropper (no image at all) or something else? Also what would you display, maybe a http://placehold.it/ or something else?
Jeavon
Sorry to jump on an old thread but I think I am also looking for the same solution.
I'm seeing some weird behavior where GetCropUrl("propertyAlis", "cropAlias") is returning a malformed URL string if it doesn't match a cropAlias due to no image being uploaded.
I would expect it return null or it would be nice to specify a default/fallback.
I haven't had chance to dig around the Umbraco src but if I find anything I will update everyone here
is working on a reply...