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 ?
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 ?
.GetCropUrl(cropAlias: "YOURALIAS") gives you access to the different crops you have defined on the image.
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 :)
is working on a reply...