error CS1928: 'System.Web.Mvc.UrlHelper' does not contain a definition for 'GetCropUrl' and the best extension method overload 'Umbraco.Web.HtmlHelperRenderExtensions.GetCropUrl(System.Web.Mvc.HtmlHelper, Umbraco.Core.Models.IPublishedContent, int?, int?, string, string, int?, Umbraco.Web.Models.ImageCropMode?, Umbraco.Web.Models.ImageCropAnchor?, bool, bool, bool, string, Umbraco.Web.Models.ImageCropRatioMode?, bool)' has some invalid arguments
Get crop with width and height using TypeMedia
So, i have
doesnt work... Any help :)?
What does that return?
error CS1928: 'System.Web.Mvc.UrlHelper' does not contain a definition for 'GetCropUrl' and the best extension method overload 'Umbraco.Web.HtmlHelperRenderExtensions.GetCropUrl(System.Web.Mvc.HtmlHelper, Umbraco.Core.Models.IPublishedContent, int?, int?, string, string, int?, Umbraco.Web.Models.ImageCropMode?, Umbraco.Web.Models.ImageCropAnchor?, bool, bool, bool, string, Umbraco.Web.Models.ImageCropRatioMode?, bool)' has some invalid arguments
Hi Claus,
Have you tried something like this where the image is the property alias of the cropper property
https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/image-cropper
By the way are you using Umbraco 7.3.5 or a newer version?
Hope this helps,
/Dennis
Yes, I think maybe you are using pre v7.3.5?
The problem is im inside a "Nested content" in a "Leblender" and aparrently that kills "propertyalias".
What i am looking really for is a way to get a integer valued crop from an image id.
I have the image id. I want a crop thats eg: 300x300 pixles.
im on 7.3.4
Success!
Cool, Url helper is new in v7.3.5 onwards
is working on a reply...