Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jay Amang 13 posts 93 karma points
    Feb 24, 2022 @ 09:32
    Jay Amang
    0

    No Overload Method for GetCropURL

    Good Day!

    Currently working on displaying the images under a list view with an alias "square" using the image cropper.

    However, I'm having error on getting the url and returns an error of " No overload for method 'GetCropUrl' takes 1 arguments "

    enter image description here

    I tried it in version8 and it seems to be working. But implementing the same method to version 9 give me this result:

    enter image description here

    Appreciate your help here. Thanks!

  • Erik Eelman 82 posts 322 karma points
    Feb 24, 2022 @ 10:14
    Erik Eelman
    0

    Hi Jaypennson,

    I think you need to add a using statement at the top of your view. The overloads for the imagecropper are in Umbraco.Extensions.

    @using Umbraco.Extensions
    
  • Jay Amang 13 posts 93 karma points
    Feb 27, 2022 @ 06:20
    Jay Amang
    0

    Hi Erik,

    Thanks for the answer, but still getting the error.

    Found another work around to stick with the dynamic way of outputting the crop url is:

    img [email protected]("image", "square")

    Thanks!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies