Page 1 of 1

Image Title magnific

Posted: 10 Jan 2024, 13:38
by brianteeman
I am in the process of upgrading a site from j3 to 5

I have upgraded phocagallery to Version 4.5.5 and I've managed to get all my css changes and template overrides completed.

Just one last thing I am stuck on and I think it might be a bug.

With all the image popup options except for magnific the image title is displayed. The div for image title is just empty

Image

Re: Image Title magnific

Posted: 10 Jan 2024, 15:10
by christine
Hi Brian,

Have you also tried it with 5.0.0-Beta8 for Joomla 5?
https://github.com/PhocaCz/PhocaGallery ... 0Beta8.zip
Jan can give more information later.

Kind regards
Christine
(christinewk-github)

Re: Image Title magnific

Posted: 10 Jan 2024, 16:03
by Jan
Hi Brian,

1) mfp-title is a part of magnific Javascript and it seems it is initialized as default with empty value but maybe it should get the title per some Javascript method after :idea:

Code: Select all

 ... e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor ... 
2) I would recommend using Photoswipe instead of Magnific, see demo here:
https://www.phoca.cz/demo/15-webp

3) The demo site is powered by Phoca Gallery 5 (Beta). Phoca Gallery 5 Beta is almost stable (I just made some small CSS changes regarding dark administration theme, but it can be used as stable now).

You can download it here:
https://www.phoca.cz/download/66-phoca- ... -component

This is Joomla 5 version (modernized), without need to run Backward compatibility plugin (it even works on Joomla 4, like on this demo website: https://www.phoca.cz/demo/15-webp ).

Jan