Page 1 of 1

Detail View Photoswipe in Phoca Gallery Image Button

Posted: 14 Apr 2020, 11:33
by Jonny99
I use Phoca Gallery with the Detail View Photoswipe (Detail View Setting: Display Caption: Only Description)
The menu List of Images (Category View) everything works correctly.
The problem is the Phocagallery Image Button (Images):
Photoswipe cannot be selected. The detailed view Photoswipe works with the standard.
However, it is not the description but the title that is shown in the Detail view.

Re: Detail View Photoswipe in Phoca Gallery Image Button

Posted: 14 Apr 2020, 18:18
by Jan
Hi, yes, the plugin does not have the parameter like in in component, in plugin the title is displayed, to change it, the code needs to be directly customized:


plugins/content/phocgallery/phocagallery.php - line cca 1362

FROM:

Code: Select all

 $output .= '<figcaption itemprop="caption description">'. $image->title.'</figcaption>';
TO:

Code: Select all

 $output .= '<figcaption itemprop="caption description">'. $image->description.'</figcaption>';
Jan

Re: Detail View Photoswipe in Phoca Gallery Image Button

Posted: 14 Apr 2020, 20:05
by Jonny99
Thanks for the quick fix.

Re: Detail View Photoswipe in Phoca Gallery Image Button

Posted: 15 Apr 2020, 22:16
by Jan
Ok