Page 1 of 1

How to add single image to article

Posted: 31 Dec 2023, 15:38
by slycrespo
Hello!
What is the code to add single image to an article? I have Phoca Gallery Plugin installed and enabled..
Thanks!

Re: How to add single image to article

Posted: 31 Dec 2023, 18:45
by Benno
Hi,
For example: This code displays the fifth image of category ten.
{phocagallery view=category|categoryid=10|limitstart=4|limitcount=5|max=1}
Just install the Phoca Gallery Button Plugin to generate valid code.

Kind regards,
Benno

Re: How to add single image to article

Posted: 31 Dec 2023, 19:03
by slycrespo
Benno wrote: 31 Dec 2023, 18:45 Hi,
For example: This code displays the fifth image of category ten.
{phocagallery view=category|categoryid=10|limitstart=4|limitcount=5|max=1}
Just install the Phoca Gallery Button Plugin to generate valid code.

Kind regards,
Benno
This code shows a thumbnail instead of whole image.. Please help!

Re: How to add single image to article

Posted: 31 Dec 2023, 19:42
by Benno
Hi,
This code shows a thumbnail instead of whole image.. Please help!
Yes, of course. Phoca Gallery displays thumbnails. Normally the medium thumbnails in the category view and the large thumbnails in the detail view. (When a thumb is clicked on in category view).

Kind regards,
Benno

Re: How to add single image to article

Posted: 31 Dec 2023, 20:12
by slycrespo
So there is no way to display an image in full size?

Re: How to add single image to article

Posted: 01 Jan 2024, 11:16
by Benno
Hi,
Phoca Gallery can create thumbnails with sizes other than the standard sizes, i.e. also the size of the original image, cropped or uncropped, but they remain thumbnails.
If it absolutely has to be the original image, I would not use the Phoca Gallery Plugin, but display it directly in an article using:
<img title="" src="" alt="" width="" height="" /> :idea:

Kind regards,
Benno