Page 1 of 1

List one category

Posted: 28 Dec 2009, 00:07
by Cherchez
I have got photos in 2 categories. I have successfully used

Code: Select all

{phocagallery view=categories}
to get both categories displayed in my article. That worked well. Each category was represented by a single image and the category name. But I now want to get a single category displayed (because my article is about a single category). So I inserted the following code:

Code: Select all

{phocagallery view=[category name]}
but this resulted in nothing being displayed. So I tried:

Code: Select all

{phocagallery view=[category name]|categoryid=1}
with the same lack of result. (I checked that the category id was correct.)

I've looked through the forums and documentation but still can't work this out. Do please point me to an existing answer if the question has already been asked.

Re: List one category

Posted: 28 Dec 2009, 17:39
by Ronny
Hi,

you should use the following command line for the plugin to display only one category:

{phocagallery view=category|categoryid=1}

Regards,
Ronny

Re: List one category

Posted: 28 Dec 2009, 22:57
by Cherchez
Thanks Ronny,
I had tried that and got a good list of images in the category. But then when I click on a image I get a "500 - View not found [name, type, prefix]: phocagallery,html,phocagalleryView" error.

I see numerous instances of this error in the forum but none apppear to match my circumstances. Am I supposed to have published a menu to enable this to work? Or am I missing a plugin? I've got Phoca Gallery and Phoca Gallery Plugin installed and enabled at present.
Cherchez

Re: List one category

Posted: 30 Dec 2009, 23:35
by Cherchez
For the record:
By publishing a "Phoca Gallery Category List Layout" menu item I was able to get the images displaying correctly when the user selects a thumbnail in an article which was listing a single category using {phocagallery view=category|categoryid=1}.

I have absolutely no idea why, and would appreciate any help on that, but this may be of help to others in the future.

Re: List one category

Posted: 04 Jan 2010, 23:24
by Jan
Enabling error reporting in php will help - to see the error which you get :(

If you have upgraded to new version. Did you resave the menu link to all categories?