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
Hi,
after upgrade to 6.2.4, the Find ( from http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/built-in-property-editors/Image-Cropper ) attribute don't work anymore.
This is my issue: http://issues.umbraco.org/issue/U4-6055
Thank you.
I tried other ways but I've empty string.
<img src="@dynamicMediaItem.GetCropUrl("umbracoFile", "320x613")" />
I print out the crop value and I've XML value, but Find don't work.
Workaround found.
I found the problem. There is some bug into Umbraco.Media. It return a value that is not an image type.To solve I create a Macro in this manner and call it into partial view.Macro:@inherits umbraco.MacroEngines.DynamicNodeContext@using umbraco.cms.businesslogic.media;@using umbraco.BusinessLogic;
@{ string imageId = Convert.ToString(Model.immagineLateralePagina); var dynamicMediaItem = Model.MediaById(int.Parse(imageId)); } <img src="@dynamicMediaItem.crop.Find("@name", "320x613").url" alt="@imageId" title="@Model.Name"/>
and then into partiel view:
@Umbraco.RenderMacro("320x613")
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
U6.2.4: error into Find attribute on image cropper datatype
Hi,
after upgrade to 6.2.4, the Find ( from http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/built-in-property-editors/Image-Cropper ) attribute don't work anymore.
This is my issue: http://issues.umbraco.org/issue/U4-6055
Thank you.
I tried other ways but I've empty string.
<img src="@dynamicMediaItem.GetCropUrl("umbracoFile", "320x613")" />
I print out the crop value and I've XML value, but Find don't work.
Workaround found.
I found the problem. There is some bug into Umbraco.Media. It return a value that is not an image type.
To solve I create a Macro in this manner and call it into partial view.
Macro:
@inherits umbraco.MacroEngines.DynamicNodeContext
@using umbraco.cms.businesslogic.media;
@using umbraco.BusinessLogic;
and then into partiel view:
is working on a reply...