Page 1 of 1

Phoca Gallery Plugin show full image

Posted: 22 Apr 2013, 14:07
by Machiel
Dear Phoca Forum users,

I'm trying to figure out how to show 2 images side by side inside a blog item with the gallery plugin.
So I don't want the square boxes, just a smaller version of the large image.
I found the type 2 setting(Plugin type = Large Image) but this is the largest image available.
In my case 640px, I would like to have the same result as type 2 but with smaller images, let say 300px width.
Any idea how to get this done?

Thanks in advance and Kind regards

Re: Phoca Gallery Plugin show full image

Posted: 24 Apr 2013, 20:57
by Jan
Hi, you can change the size of the thumbnail in component (and recreate thumbnails) or then somehow customize the output to display smaller thumbnails (redefined by html - width and height parameters for img tag) directly in the code :idea:

Jan

Re: Phoca Gallery Plugin show full image

Posted: 24 Apr 2013, 22:30
by Machiel
Dear Jan,

Thanks for your answer.
This is what I have done to make it work.
- Create a parameter width inside the plugin
- When plugin type 2 is used it will check if width is used(red circled on image below) if so the HTML width and height settings are changed.
In that way I can use different image sizes when they are needed.

So far this works, but I still need to type in the width=....px after the code is generated with the phoca editor button.

Step 2 for me is to create a width field inside the Phoca code generator triggerd from the editor button.
Can you point me in the right direction where these things can be changed?
I'm talking about the page which opens when clicking on the blue circled link on the image below.

Image

Thanks in advance and thanks for a great component.

Kind Regards

Re: Phoca Gallery Plugin show full image

Posted: 25 Apr 2013, 20:50
by Jan
Hi, there are two plugins.

The one (blue circle) only adds the code to article (but without any other feature - it is Phoca Gallery Button Plugin) so to add some string/code to article, it needs to be customized in Phoca Gallery component as it includes the behaviour to add the strings - see:

components/com_phocagallery/views/ -> phocagallerylinks phocagallerylinkimg phocagallerylinkcats

To translate such code - the plugin code - Phoca Gallery plugin code needs to be customized

Re: Phoca Gallery Plugin show full image

Posted: 26 Apr 2013, 12:54
by Machiel
Thanks for your help, I'm going to check it out.