Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Silverstripe Responsive Images module - Config


Go to End


616 Views

Avatar
Harley

Community Member, 165 Posts

25 January 2014 at 3:30am

Hi there,

Been having a look at this module https://github.com/heyday/silverstripe-responsive-images and love the idea. However after going through the instructions nothing seems to be happening.

Am I right in assuming that when inserting an image it should give me the option of uploading different versions as per _config.yml

like this:

ResponsiveSet2:
      method: CroppedImage
      sizes:
        - {query: "(min-width: 400px)", size: 300x300}
        - {query: "(min-width: 400px) and (min-device-pixel-ratio: 2.0)", size: 600x600}
        - {query: "(min-width: 800px)", size: 700x700}
        - {query: "(min-width: 800px) and (min-device-pixel-ratio: 2.0)", size: 1400x1400}
        - {query: "(min-width: 1000px)", size: 900x900}
        - {query: "(min-width: 1000px) and (min-device-pixel-ratio: 2.0)", size: 1800x1800}

I can't put my finger on what is wrong but it must only be something simple I'm sure

Regards