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
The default render of media in Media.cshtml for the grid is:
<img src="@url" alt="@Model.value.caption"
I would like to use slimsy instead, so the images become responsive. But im not too familiar with the dynamic model...
<img style="max-width:100%;" src="@Model.value.GetResponsiveImageUrl(1000, 0)" alt="" />
Does not work... Any pointers?
Hi Claus,
I found a similar topic on the forum. Perhaps this can help you further to solve what you are after.
https://our.umbraco.org/forum/templating/templates-and-document-types/57760-Using-UmbracoMedia-in-grid-editor-views-slimsy
Hope this helps,
/Dennis
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Use slimsy as default in the grid
The default render of media in Media.cshtml for the grid is:
I would like to use slimsy instead, so the images become responsive. But im not too familiar with the dynamic model...
Does not work... Any pointers?
Hi Claus,
I found a similar topic on the forum. Perhaps this can help you further to solve what you are after.
https://our.umbraco.org/forum/templating/templates-and-document-types/57760-Using-UmbracoMedia-in-grid-editor-views-slimsy
Hope this helps,
/Dennis
is working on a reply...