Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Claushingebjerg 939 posts 2574 karma points
    Jun 18, 2015 @ 14:51
    Claushingebjerg
    0

    Use slimsy as default in the grid

    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?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jun 18, 2015 @ 19:19
    Dennis Aaen
    100

    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

  • 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.

Please Sign in or register to post replies