Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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")
@Url.GetCropUrl(item.Image, "cardSquare")
@item.Image.GetCropUrl("cardSquare")
The media item is accessible as it can be accessed when doing:
@item.Image.Url()
Hi
Maybe try this
@item.image.GetCropUrl("cardSquare")
it would work.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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()
Hi
Maybe try this
it would work.
is working on a reply...