I tried to Use Image Cropper with Doc type grid editor
but I got this exception
System.Exception: Invalid content key.
at Umbraco.Web.PropertyEditors.ImageCropperPropertyValueEditor.FromEditor(ContentPropertyData editorValue, Object currentValue) in D:\a\1\s\src\Umbraco.Web\PropertyEditors\ImageCropperPropertyValueEditor.cs:line 98
at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.ConvertValue(String id, String contentTypeAlias, String dataJson)
at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.<>cDisplayClass00.0()
at Umbraco.Core.Cache.AppCacheExtensions.<>cDisplayClass501.<GetCacheItem>b__0() in D:\a\1\s\src\Umbraco.Core\Cache\AppCacheExtensions.cs:line 62
at Umbraco.Core.Cache.FastDictionaryAppCacheBase.<>c__DisplayClass21_0.<GetSafeLazy>b__0() in D:\a\1\s\src\Umbraco.Core\Cache\FastDictionaryAppCacheBase.cs:line 285
--- End of stack trace from previous location where exception was thrown ---
at Umbraco.Core.Cache.HttpRequestAppCache.Get(String key, Func1 factory) in D:\a\1\s\src\Umbraco.Core\Cache\HttpRequestAppCache.cs:line 81
at Umbraco.Core.Cache.AppCacheExtensions.GetCacheItem[T](IAppCache provider, String cacheKey, Func`1 getCacheItem) in D:\a\1\s\src\Umbraco.Core\Cache\AppCacheExtensions.cs:line 62
at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.ConvertValueToContent(String id, String contentTypeAlias, String dataJson)
at ASP.PageapppluginsdoctypegrideditorrenderDocTypeGridEditorcshtml.Execute() in C:\Users\HP\source\repos\Boulevard\BoulevardWebsite\appplugins\doctypegrideditor\render\DocTypeGridEditor.cshtml:line 26
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
at Umbraco.Web.Mvc.ProfilingView.Render(ViewContext viewContext, TextWriter writer) in D:\a\1\s\src\Umbraco.Web\Mvc\ProfilingView.cs:line 25
at System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection)
at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData)
at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model)
at ASP.PageViewsPartialsgrideditorsBase_cshtml.Execute() in C:\Users\HP\source\repos\Boulevard\BoulevardWebsite\Views\Partials\grid\editors\Base.cshtml:line 20
Use Image Cropper with Doc type grid editor
I tried to Use Image Cropper with Doc type grid editor but I got this exception
System.Exception: Invalid content key. at Umbraco.Web.PropertyEditors.ImageCropperPropertyValueEditor.FromEditor(ContentPropertyData editorValue, Object currentValue) in D:\a\1\s\src\Umbraco.Web\PropertyEditors\ImageCropperPropertyValueEditor.cs:line 98 at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.ConvertValue(String id, String contentTypeAlias, String dataJson) at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.<>cDisplayClass00.0() at Umbraco.Core.Cache.AppCacheExtensions.<>cDisplayClass50
1.<GetCacheItem>b__0() in D:\a\1\s\src\Umbraco.Core\Cache\AppCacheExtensions.cs:line 62 at Umbraco.Core.Cache.FastDictionaryAppCacheBase.<>c__DisplayClass21_0.<GetSafeLazy>b__0() in D:\a\1\s\src\Umbraco.Core\Cache\FastDictionaryAppCacheBase.cs:line 285 --- End of stack trace from previous location where exception was thrown --- at Umbraco.Core.Cache.HttpRequestAppCache.Get(String key, Func
1 factory) in D:\a\1\s\src\Umbraco.Core\Cache\HttpRequestAppCache.cs:line 81 at Umbraco.Core.Cache.AppCacheExtensions.GetCacheItem[T](IAppCache provider, String cacheKey, Func`1 getCacheItem) in D:\a\1\s\src\Umbraco.Core\Cache\AppCacheExtensions.cs:line 62 at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.ConvertValueToContent(String id, String contentTypeAlias, String dataJson) at ASP.PageapppluginsdoctypegrideditorrenderDocTypeGridEditorcshtml.Execute() in C:\Users\HP\source\repos\Boulevard\BoulevardWebsite\appplugins\doctypegrideditor\render\DocTypeGridEditor.cshtml:line 26 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at Umbraco.Web.Mvc.ProfilingView.Render(ViewContext viewContext, TextWriter writer) in D:\a\1\s\src\Umbraco.Web\Mvc\ProfilingView.cs:line 25 at System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model) at ASP.PageViewsPartialsgrideditorsBase_cshtml.Execute() in C:\Users\HP\source\repos\Boulevard\BoulevardWebsite\Views\Partials\grid\editors\Base.cshtml:line 20Help !!
This is a known issue of doctype grid editor:
https://github.com/skttl/umbraco-doc-type-grid-editor#known-issues
is there any alternatives?!
If you want default crops you can go with a mediapicker and define crops on that.
If you want the editor to define crops for every image than I can's see a way to do it right now
Thank you..
is working on a reply...