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.