Page 1 of 1

Phoca Gallery Plugin in module

Posted: 29 Aug 2023, 22:21
by tanyat1965
Hello I try to use this recomendation https://www.phoca.cz/blog/1238-how-to-d ... ery-plugin and use {phocagallery view=category|categoryid=1053|displaydownload=1|limitstart=0|limitcount=2|displayname=1}
Everything is OK with categoryid=1053|limitstart=0|limitcount=2 but I need icon to download image as it was in Phoca Gallery Image Module. No results if I add displaydownload=1 as displayname=1. Read doc, search forum... unfortunately nothing. Any help will be appreciate. Site in Joomla 4 at local server. With Joomla 3.10.12 everything was ok with Phoca Gallery Image Module.

Re: Phoca Gallery Plugin in module

Posted: 03 Sep 2023, 06:28
by Benno
Hi,
displayname=1
This is a Phoca Gallery for Joomla! 3 parameter. Don't use it.
'Display Image Title=Yes/No' & 'Display Caption (Photoswipe)=Title and/or Description' can be set directly in the Plugin --> Main Options

Kind regards,
Benno

Re: Phoca Gallery Plugin in module

Posted: 07 Sep 2023, 22:32
by tanyat1965
Answer myself. Although its hack, but may be somebody need it urgent. To have button to download original image using Phoca Gallery Plugin in module add in file boximage.php two lines after 37 line:

$path='images/phocagallery/'.$item->filename;
echo '<p class="mx-2 my-2"><a class="btn btn-primary text-white" href="'. $path .'" download>Download</a></p>'. "\n";
Last line you can modify yourself as you like.
May be this not correct way but fast.

Re: Phoca Gallery Plugin in module

Posted: 08 Sep 2023, 00:28
by Jan
Hi, thank you for the info.

Jan