How do you get Slimsy to srcset images that are in Grids? I can see the Partials/Grids/Editor/Media.cshtml but not sure what to do with it to get it to output srcsets.
I added a using statement for Slimsy and then tried to replace <img src="@url" alt="@altText"> with
But as the existing code is dynamic it doesn't work.
Any clues would be appreciated.
Incidentally, in https://github.com/Jeavon/Slimsy Item 4 wrt Rte.cshtml it would be useful to state that @Slimsy.ConvertImgToSrcSet(Html, Model.value.ToString(), true) should replace the existing @Html.Raw(value)
Slimsy and Grid Images (not RTE)
Umb 8.6 + Slimsy 3.0.0-beta4
How do you get Slimsy to srcset images that are in Grids? I can see the Partials/Grids/Editor/Media.cshtml but not sure what to do with it to get it to output srcsets.
I added a using statement for Slimsy and then tried to replace
<img src="@url" alt="@altText">
withBut as the existing code is dynamic it doesn't work.
Any clues would be appreciated.
Incidentally, in https://github.com/Jeavon/Slimsy Item 4 wrt Rte.cshtml it would be useful to state that
@Slimsy.ConvertImgToSrcSet(Html, Model.value.ToString(), true)
should replace the existing@Html.Raw(value)
Cheers,
/ Craig
is working on a reply...