How to choose between small/medium thumb when using plugin button ?

Phoca Gallery - image gallery extension
dotcom22
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 10 Nov 2008, 18:19

How to choose between small/medium thumb when using plugin button ?

Post by dotcom22 »

Hello Jan

When adding an image inside article with your button plugin, is always small thumb which is included. I would like be free to choose medium... I thinking that possible to individually choose the thumb size to include in article...not the case ??

thank you
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to choose between small/medium thumb when using plugin button ?

Post by Jan »

Hi, yes, just change the small to medium in the code:
https://phoca.cz/documents/14-phoca-gal ... ery-plugin

Jan
If you find Phoca extensions useful, please support the project
dotcom22
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 10 Nov 2008, 18:19

Re: How to choose between small/medium thumb when using plugin button ?

Post by dotcom22 »

Already read that page...those params are the same than then on in plugin...no one make mention about thumbs. I try with Swap image but no result. Have you please a code example?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to choose between small/medium thumb when using plugin button ?

Post by Jan »

Hi, see the type parameter, e.g.:

{phocagallery view=category|categoryid=1|limitstart=0|limitcount=2|type=1}

Type 1 will display mosaic view, which means that the small thumbnails will be displayed (the view is not the same like by medium thumbnails, so it needs to be additionaly CSS stylized)

Jan
If you find Phoca extensions useful, please support the project
dotcom22
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 10 Nov 2008, 18:19

Re: How to choose between small/medium thumb when using plugin button ?

Post by dotcom22 »

Hi

I tried this

Code: Select all

{phocagallery view=category|categoryid=4|imageid=37|type=0}
But this like that don't work... So in practice is not possible by default to include inside Joomla article a tag which allow to display one specific medium size thumbnail which open related large size image ? I need to apply some css for do this ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to choose between small/medium thumb when using plugin button ?

Post by Jan »

Hi, what do you mean with "that don't work"?

Yes, you can use the method for all images at once, it is not possible to set which image will have medium and which small thumbnail size (except the code will be not modified directly) :idea:

Jan
If you find Phoca extensions useful, please support the project
dotcom22
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 10 Nov 2008, 18:19

Re: How to choose between small/medium thumb when using plugin button ?

Post by dotcom22 »

with this I get thumbnail of 96x96:

{phocagallery view=category|categoryid=1|imageid=28|type=0}

with this I get thumbnail of 46x46:

{phocagallery view=category|categoryid=1|imageid=28|type=1}

with this I get thumbnail of 96x96:

{phocagallery view=category|categoryid=1|imageid=28}

Url below show you my thumb setup...So when I could get thumb of 150x150 ?

https://ibb.co/nQ5Rzk

My goal was to increase the size of medium or small thumb to 25x250 because my gallery is actually almost empty and without interfering with thumb published in Phoca Menu Pro which fit my size need.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to choose between small/medium thumb when using plugin button ?

Post by Jan »

Hi, just set the 150x150 for the medium thumbnails in Phoca Gallery options and recreate the thumbnails.

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