Page 1 of 1

Code not working in article?

Posted: 03 Jul 2009, 14:50
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.

Re: Code not working in article?

Posted: 03 Jul 2009, 17:24
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

Re: Code not working in article?

Posted: 03 Jul 2009, 19:19
by lv426
Yes I did try that...

{phocagallery view=category|categoryid=31}

...but it still did not display anything :S

Re: Code not working in article?

Posted: 06 Jul 2009, 12:13
by lv426
Any ideas?

Re: Code not working in article?

Posted: 06 Jul 2009, 19:33
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