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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.