Piwigo / piwigo-bootstrap-darkroom

A mobile-ready and feature-rich theme for Piwigo photo gallery, based on Bootstrap 4
Apache License 2.0
81 stars 40 forks source link

Image description missing in photoswipe mode #338

Closed aberwenig closed 1 year ago

aberwenig commented 1 year ago

I have a Piwigo 12.3.0 system with Bootstrap-Darkroom 2.5.10.

When viewing images with Photoswipe, the image description, which should appear below, is missing.

I tried to find why. In file '.../themes/bootstrap_darkroom/template/_photoswipe_js.tpl', line 56:

                 if ($(this).data('description').length > 0) {$title += '<ul id="pswp--caption--description"><li>' + $(this).data('description') + '</li></ul>'; }

$(this).data('description') is always empty. Somehow it does not get read correctly from the image properties. I couldn't find where that happens.

For comparison: I have another Piwigo system version 2.10.2 with Bootstrap-Darkroom 2.4.5 and there it works fine.

ClaudiaLev commented 1 year ago

I had the same problem: https://github.com/Piwigo/piwigo-bootstrap-darkroom/issues/327

It will be fixed with the next update.

aberwenig commented 1 year ago

Hey, ClaudiaLev,

I had a look at issue #327 you mentioned. I tried the solution described there (modify the file 'themecontroller.php') and now it works.

Thanks a lot!

aberwenig commented 1 year ago

Merge with issue #327