Code not working in article?

Phoca Gallery - image gallery extension
lv426
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Jul 2009, 14:43

Code not working in article?

Post by lv426 »

Hi everyone, having some trouble with the code in my article.

I put the code:

{phocagallery view=categories|categoryid=31}

This should displace one of my categories, however the page just appears blank. I have tried several different ID numbers from different categories, but nothing.

But when I place this code, then all the categories appear in list form with no trouble. So the plugin is working, but for some reason not with categoryid???

{phocagallery view=categories}

Have been trying to get this to work for ages, so any help would be greatly appreciated. Many thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Code not working in article?

Post by Jan »

Hi, if you set view=categories - all categories will be displayed
if you want to display current category, you need to set view=category

see:
https://www.phoca.cz/documents/14-phoca- ... ery-plugin

Jan
If you find Phoca extensions useful, please support the project
lv426
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Jul 2009, 14:43

Re: Code not working in article?

Post by lv426 »

Yes I did try that...

{phocagallery view=category|categoryid=31}

...but it still did not display anything :S
lv426
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Jul 2009, 14:43

Re: Code not working in article?

Post by lv426 »

Any ideas?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Code not working in article?

Post by Jan »

Hi, if you want to display all categories, you will add there:

{phocagallery view=categories}

If you want to display an image or more than one image, you need to set categoryid and imageid in case one image will be displayed or categoryid and limitcount, limitstart parameters, see examples:

https://www.phoca.cz/demo/phocagallery-plugin

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