Coded something up in Couch in an interesting way? Have a snippet or shortcode to share? Post it here for the community to benefit.
15 posts Page 2 of 2
I see the gallery images have no way of sorting them, via this approach. This is correct? I use the gallery in another place, where I request the first image with "limit="1"", but that means I need to control, which is the first image.

It works fine otherwise, thank you.

I am using the CouchCMS version from the download page, since the GitHub version didn't work for me (got a data-bound-form error, can make a separate topic if needed).

Attachments

I see the gallery images have no way of sorting them, via this approach. This is correct?

Actually there is. Please see -
viewtopic.php?f=4&t=11354#p29969

the GitHub version didn't work for me (got a data-bound-form error, can make a separate topic if needed).

Yes, please do create a new topic for that.
It is unexpected for the GitHub version to not be backward compatible with the current version so I'll definitely want to take a look at your issue.
Hello @KK, would it be possible to separate uploaded images into folders of a gallery automatically? proposed solution is awesome, however I an encountered a small issue - if a user would delete the page without deleting images first, stray images would be kept. Would be easier to manage these images if they were separated into folders as well when viewing from the gallery template :)
Hello @Kulverstukas :)

While using a separate folder for each page's images would be useful, it'd still require deleting the images manually.
Also the pages can potentially run into hundreds of thousands in number - folders (like nested-pages) were not designed to scale to such large numbers.

A better solution would be to emulate what we have in database parlance "on delete, cascade" i.e. deleting the parent page should automatically delete the dependent gallery pages.

I do have this feature on my to-do list (though not among the items I need to immediately address).
Yeah, you are right about that one I suppose. That feature would be great and I can't wait for the next release of CouchCMS!
15 posts Page 2 of 2

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 1 guest