novagallery icon indicating copy to clipboard operation
novagallery copied to clipboard

Add per-album description

Open awong234 opened this issue 1 year ago • 1 comments

Hello!

I am testing this gallery out and it seems to be just what I want, it's very nice thank you!

I have never written PHP before, so please bear with my naivete. I wanted to see if I could include some small information on an album basis; for example, if it's pictures related to a trip, write a few sentences about the trip and include an embed of the google maps trip, something like that. It's related to #17.

It seemed to me easy to just have a description.html file in each album folder, and if it has content, then display that content.

Not the most user-friendly, but writing a little bit of HTML isn't a huge ask nowadays I suppose. I tested that it works on my website.

I suppose to make it more robust and easier for people maybe adding a markdown conversion process so that the user doesn't have to worry about syntax errors in the html, they would just supply a description.md file in each album. But I guess I also like the low-dependency approach used here.

Anyway, it works for my purposes but obviously I haven't spent a lot of time thinking about a general solution to the problem or any problems associated with how this has been written, so I'm mainly writing this in case it can be useful for another user to patch into their code, with no expectation that it should be merged.

Thanks for the discussion!

awong234 avatar Feb 04 '24 19:02 awong234

Thank you very much! :+1: Thats a great idea and will be included in v2.

david-novafacile avatar Feb 04 '24 21:02 david-novafacile