Copied to clipboard

Flag this post as spam?

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


  • Rahul Patel 8 posts 80 karma points
    Sep 10, 2018 @ 18:37
    Rahul Patel
    0

    How to access Media item id in grid layout

    Hi,

    I'm trying to use Slimsy to render optimized images for grid background images. As far as I can tell, in the grid view we only have access to the URL with a setting like this:

     {
        "label": "Background image",
        "description": "Set a background",
        "key": "background-image",
        "view": "imagepicker",
        "modifier": "url({0})"
      },
    

    How can we get the media id or media item so I can make a like:

    Url.GetSrcSetUrls(publishedContent, int width, int height, int quality)
    
  • 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