Detail View Photoswipe in Phoca Gallery Image Button

Phoca Gallery - image gallery extension
User avatar
Jonny99
Phoca Member
Phoca Member
Posts: 10
Joined: 17 Apr 2013, 19:44

Detail View Photoswipe in Phoca Gallery Image Button

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Detail View Photoswipe in Phoca Gallery Image Button

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Jonny99
Phoca Member
Phoca Member
Posts: 10
Joined: 17 Apr 2013, 19:44

Re: Detail View Photoswipe in Phoca Gallery Image Button

Post by Jonny99 »

Thanks for the quick fix.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Detail View Photoswipe in Phoca Gallery Image Button

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply