Topic Gallery displays all images from a discussion on a dedicated page.
Use cases
Ideal for image-focused communities and/or categories in which users post many pictures.
It allows for a full picture experience without the regular topic interface and other contents getting in the way.
If you open the gallery from a post, the gallery is filtered and only shows images starting from this post. You can cancel this filter with a single click:
Gallery URLs
The gallery URL syntax is the same as a regular topic, but /t/ is replaced with /gallery/:
This is such a cool idea and implementation.
Will try this later but is there a way to add image description that would show on the image popup below image?
Ah, there’s an oversight from me. This plugin’s photoswipe configuration seems to show the original filename instead of the custom title. I’ll fix this
Apparently, while I can use the built-in lightbox (that’s I was doing in the first versions of this plugin), I can’t configure and tweak it for my needs. Notably, I couldn’t have it interact with my methods for the infinite loading/swiping, so I had to ship my own.
I can’t fix this, unfortunately. Image titles are written in the posts’ content and aren’t stored in any table.
For performance reason, my queries don’t return the posts’ content, so I can’t parse it to retrieve the titles.
I guess I’ll leave the filenames then. Even tho this information is rarely valuable…
Non-modified filenames most of the time just reveal where the image comes from and nothing more.
For example in my test instance:
image.png → “image” filenames are images pasted directly in the composer
Should I consider it as a sensitive information? Image names are used by default for titles when we upload them on Discourse. If we edit the titles, the original information is unavailable for users. Yet, this plugin discloses it.
Edit: Yeah, I should probably not display the original filename.
Thank you! Would it also be possible to have a setting do disable the automatic “from post #123” when a user clicks on the gallery button mid-topic please? So basically the full gallery available no matter what specific gallery button you click.
You can disable the post buttons in the plugin’s setting. The remaining gallery buttons (timeline, and end of topic) open the gallery from the start.