Phoca Gallery Plugin show full image

Phoca Gallery plugins - plugins for Phoca Gallery extension
Machiel
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 05 Mar 2010, 21:48

Phoca Gallery Plugin show full image

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

Re: Phoca Gallery Plugin show full image

Post 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
If you find Phoca extensions useful, please support the project
Machiel
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 05 Mar 2010, 21:48

Re: Phoca Gallery Plugin show full image

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

Re: Phoca Gallery Plugin show full image

Post 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
If you find Phoca extensions useful, please support the project
Machiel
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 05 Mar 2010, 21:48

Re: Phoca Gallery Plugin show full image

Post by Machiel »

Thanks for your help, I'm going to check it out.
Post Reply