Copied to clipboard

Flag this post as spam?

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


  • Nick 21 posts 163 karma points notactivated
    Oct 03, 2022 @ 20:09
    Nick
    0

    GetCropUrl not working with Nested Content

    I'm using nested content and within the fieldset I have an image along with some other property editors. I've setup my crops following this article:

    https://our.umbraco.com/Documentation/Fundamentals/Backoffice/property-editors/built-in-property-editors/Media-Picker-3/#media-picker

    However, when using either of the below, no value is returned:

    @Url.GetCropUrl(item.Image, "cardSquare") @item.Image.GetCropUrl("cardSquare")

    The media item is accessible as it can be accessed when doing:

    @item.Image.Url()

  • Harikrishna Parmar 43 posts 262 karma points c-trib
    Oct 14, 2022 @ 11:32
    Harikrishna Parmar
    0

    Hi

    Maybe try this

    @item.image.GetCropUrl("cardSquare")
    

    it would work.

  • 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