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...
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.
Continue discussion
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...
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.