In this issue, I asked about how to use a different image for mobile than for desktop. https://forum.backdropcms.org/forum/how-use-different-images-different-s...

One possible solution would be to have two image fields on a content type 1) desktop image 2) mobile image - then create different display modes for desktop and mobile, using the appropriate image for each. 

However, for this to work I would need to be able to change display modes from one screen size to another. Any idea on how to do that?

Comments

klonos's picture

Hey  👋

Have you tried https://github.com/backdrop-contrib/breakpointshttps://github.com/backdrop-contrib/picture? (no official releases though)

I've read that you could achieve something similar with https://www.drupal.org/project/context_breakpointhttps://www.drupal.org/project/contextual_view_modes, but these modules haven't been ported to Backdrop yet. Perhaps give them a spin on a test D7 site, and if they work for this use case, then request that they be ported to Backdrop?

Hope that helps.