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
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"> with
<img src="@url" alt="@altText">
<img data-srcset="@Url.GetSrcSetUrls(Model.value.image, "SideImage")"
sizes="auto" class="lazyload" alt="@altText">
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.ConvertImgToSrcSet(Html, Model.value.ToString(), true)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted