jancbeck / kirby-responsive-images

Bring responsive images to Kirby CMS
66 stars 7 forks source link

Different `sizes` attribute per template / blueprint #9

Open mrksbnch opened 8 years ago

mrksbnch commented 8 years ago

I'm not sure if I understand the "Sizes" section of the documentation correctly, but is there currently any way to set a different sizes attribute per template / blueprint?

I know that I could use different classes on my images, but editors might not know when to use which class name:

c::set('responsiveimages.sizes', array(
    'class-name' => array(
        'size_value' => '(min-width: XXpx) 33vw, (min-width: XXpx) 50vw, 100vw'
    ),
));

All other settings, that I could find, are more like general settings for every image, but the images on a project I'm working on have different widths for each template, e.g. they are shown in a multi-column layout.