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.