Page 1 of 1

Add Image Caption Prefix to Photoswipe Detail View

Posted: 03 Apr 2023, 22:03
by fschreiner
Hi, maybe you guys are able to help me to identify the correct file to adapt.

For 'Detail View' I'm using Photoswipe with Subtitle set to Image Caption Only. The filename is being displayed correctly, so far so good.

Lets assume the filename is 'TestImage.jpg'. I get 'TestImage' as a subtitle.

What I'd like to see is 'Image Title:TestImage'


Is it possible to prepend a fixed string, in this case 'Image Title: '? Which file would I need to change to make that work?


Thanks!


Environment:
Joomla 4.2.9
PhocaGallery 4.5.3

Re: Add Image Caption Prefix to Photoswipe Detail View

Posted: 04 Apr 2023, 13:35
by Jan
Hi, you can display there there description, so maybe you can set this all to description :idea:

Jan

Re: Add Image Caption Prefix to Photoswipe Detail View

Posted: 04 Apr 2023, 15:43
by fschreiner
Or would it be possible to adapt the filename in code before it gets handed over to the Photoswipe component?

Re: Add Image Caption Prefix to Photoswipe Detail View

Posted: 06 Apr 2023, 17:18
by Jan
What do you mean with "adapt the filename"?

Jan