Copied to clipboard

Flag this post as spam?

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


  • Phillip Shaw 4 posts 34 karma points
    May 19, 2020 @ 10:37
    Phillip Shaw
    0

    Looking for advice on controlling images in nested content

    Hi

    Looking to get some community advice about how to best solve this for content editors

    Use case is that i want to output multiple image sizes (like image cropper does) but we use alot of nested content data types due to all the element document types we have so image cropper cannot be used

    I noticed that its possible to set image crop dimensions in the default media type 'image', since it uses an image cropper as well. If i use 'media picker' as the data type on an element document type, it only ever sees one image url and not the different crop sizes

    Is there a way to access the different crop sizes when using 'media picker' on a media type that has multiple image sizes?

    If not, how can i control image sizes for a nested content image property ?

  • Marc Love (uSkinned.net) 447 posts 1789 karma points
    May 19, 2020 @ 12:24
    Marc Love (uSkinned.net)
    100

    .GetCropUrl(cropAlias: "YOURALIAS") gives you access to the different crops you have defined on the image.

  • Phillip Shaw 4 posts 34 karma points
    May 20, 2020 @ 05:31
    Phillip Shaw
    0

    Thanks Marc that solved it for me i just needed to standardise the names of the crop aliases and now its working to get the different sizes :)

Please Sign in or register to post replies

Write your reply to:

Draft