You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Glass.Mapper.Sc version 5.6.160.0 running on Sitecore 9.2.
If you have a markup similar to this (in this case, used for dynamic lazy-loaded images), when the "isEditable" is true, in experience editor, you get the error shown.
@Html.Glass().RenderImage(Model, x => x.RollupLargeImage, new { @Class = "fluid-img", data_srcset = "/sitecore/shell/-/media/experience-explorer/presets/field-320--435.jpg?la=en 1200w, /sitecore/shell/-/media/experience-explorer/presets/field-320--435.jpg?la=en 992w, /sitecore/shell/-/media/experience-explorer/presets/field-320--435.jpg?la=en 576w"}, isEditable: true)
The above is the final rendered url for the parameters. I've shown it that way so that the ?la=en is visible. The original razor markup is this:
@Html.Glass().RenderImage(Model, x => x.RollupLargeImage, new { @Class = "fluid-img", data_srcset = $"{Model.RollupLargeImage.Src} 1200w, {Model.RollupLargeImage.Src} 992w, {Model.RollupLargeImage.Src} 576w" }, isEditable: true)
Item has already been added. Key in dictionary: 'la' Key being added: 'la'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at Sitecore.Pipelines.RenderField.GetImageFieldValue.ConfigureRenderer(RenderFieldArgs args, ImageRenderer imageRenderer)
at Sitecore.Pipelines.RenderField.GetImageFieldValue.Process(RenderFieldArgs args)
at (Object , Object )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists)
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
at Glass.Mapper.Sc.GlassHtml.MakeEditable[T](Expression`1 field, Expression`1 standardOutput, T model, Object parameters, Context context, Database database, TextWriter writer) in C:\TeamCity\buildAgent\work\9693a2d38f55a4a\Source\Glass.Mapper.Sc\GlassHtml.cs:line 594
The text was updated successfully, but these errors were encountered:
Glass.Mapper.Sc version 5.6.160.0 running on Sitecore 9.2.
If you have a markup similar to this (in this case, used for dynamic lazy-loaded images), when the "isEditable" is true, in experience editor, you get the error shown.
@Html.Glass().RenderImage(Model, x => x.RollupLargeImage, new { @Class = "fluid-img", data_srcset = "/sitecore/shell/-/media/experience-explorer/presets/field-320--435.jpg?la=en 1200w, /sitecore/shell/-/media/experience-explorer/presets/field-320--435.jpg?la=en 992w, /sitecore/shell/-/media/experience-explorer/presets/field-320--435.jpg?la=en 576w"}, isEditable: true)
The above is the final rendered url for the parameters. I've shown it that way so that the ?la=en is visible. The original razor markup is this:
@Html.Glass().RenderImage(Model, x => x.RollupLargeImage, new { @Class = "fluid-img", data_srcset = $"{Model.RollupLargeImage.Src} 1200w, {Model.RollupLargeImage.Src} 992w, {Model.RollupLargeImage.Src} 576w" }, isEditable: true)
Item has already been added. Key in dictionary: 'la' Key being added: 'la'
The text was updated successfully, but these errors were encountered: