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.

All other Modules /

Discuss all other Modules here.

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

Silverstripe Responsive Images module - Config


Reply


214 Views

Avatar
Harley

Community Member, 153 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