0

We use Glass Mapper as an ORM for our MVC Sitecore solution. Sample code used to render an image is below.

RenderImage(item, x => x.Image, new { la = "", @class = "img-circle", alt = item.Image.Alt }, isEditable: true)

Image renders fine, however using this code, I'm unable to edit that image in the Experience Editor. Did anyone face a similar issue? Does anybody have a solution for it?

Kate Orlova
  • 3,225
  • 5
  • 11
  • 35
  • Most probably you have some other issues with your html and Sitecore is not able to create html markup required by Experience Editor. Post the code of the whole component and output of the html. – Marek Musielak Mar 27 '18 at 08:08
  • try Editable(item, x => x.Image, new { la = "", @class = "img-circle", alt = item.Image.Alt }) – Jan Bluemink Mar 27 '18 at 13:43
  • Hello Everyone, the code works as expected. My Site is UI responsive, to support different browsers across different OS and device platforms, the design team has applied some styling to the parent div's of the images which makes these images unselectable in experience editor. So from sitecore, glassmapper's end this isnt an issue – sanjay gaonkar Apr 05 '18 at 04:51

0 Answers0