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.
Detail View Photoswipe in Phoca Gallery Image Button
- Jonny99
- Phoca Member
- Posts: 10
- Joined: 17 Apr 2013, 19:44
- Jan
- Phoca Hero
- Posts: 47865
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Detail View Photoswipe in Phoca Gallery Image Button
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:
TO:
Jan
plugins/content/phocgallery/phocagallery.php - line cca 1362
FROM:
Code: Select all
$output .= '<figcaption itemprop="caption description">'. $image->title.'</figcaption>';
Code: Select all
$output .= '<figcaption itemprop="caption description">'. $image->description.'</figcaption>';
If you find Phoca extensions useful, please support the project
- Jonny99
- Phoca Member
- Posts: 10
- Joined: 17 Apr 2013, 19:44
Re: Detail View Photoswipe in Phoca Gallery Image Button
Thanks for the quick fix.
- Jan
- Phoca Hero
- Posts: 47865
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Detail View Photoswipe in Phoca Gallery Image Button
Ok
If you find Phoca extensions useful, please support the project