Forum for discussing general topics related to Couch.
6 posts Page 1 of 1
Hello there

I am not sure if this is possible with couch cms?

I am creating a site: https://codepen.io/markchavush/full/ZwReWy

I would like users to be able to add additional images to the gallery. Each image is a column within a grid and after a new image is added, the grid automatically ensures that the images are responsive and collapse with the usual media queries etc.

Is it possible for me to define a repeatable region and allow the user to just easily upload a new image and it get added to the grid automatically?

Loving the software and your time and help would be greatly appreciated from an aspiring developer!

Cheers

Mark
It is possible. Go ahead and code it. If you encounter a problem that you can not solve yourself by reading documentation (and forum samples) for a day or two, post it here.
Hello there

Thank you for your assistance. I have read through and downloaded the photo gallery example but it isn't as mobile friendly as I need.

Essentially, I need to allow the user to add images but still retain the gridlex css framework markup to ensure the images get added to a max of four in a row and collapse to a single column on mobile etc.

Is that at all possible through repeatable region s etc.?

Thanks again for your time

Marky
Marky,

Do you have a valid static HTML ready with all required classes? If you manually add more images to it (editing HTML), does it all work just like you want?

If the answer is 'yes', then go ahead and "couchify" your static HTML. Feel free to use repeatable regions in a regular non-clonable template (instead of 'gallery' template). Use the documentation as a reference to how to output repeatable regions. Your ultimate goal is to make generated HTML (view-source) look exactly like the original static HTML.
Thank you

So it should be as simple as adding the couch tags to the start and end of each section I would like to allow the user to clone? Is that correct? This will then add another image inside the relevant divs and recreate a block of html code with the image inside it and retain the functionality of lightbox 2?

If so, wow that would be perfect.

Cheers

Marky
Right. This greatly helps understand how Couch works - https://docs.couchcms.com/tutorials.html
The gallery thing can be coded within 10 mins. Forum has a lot of samples https://www.google.com/search?q=+galler ... om%2Fforum
For example this one - viewtopic.php?f=2&t=11501#p30659
Good luck :)
6 posts Page 1 of 1