List one category

Phoca Gallery - image gallery extension
Cherchez
Phoca Member
Phoca Member
Posts: 39
Joined: 27 Dec 2009, 23:39

List one category

Post 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.
Ronny
Phoca Professional
Phoca Professional
Posts: 211
Joined: 03 Nov 2009, 20:31
Location: Germany
Contact:

Re: List one category

Post 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
Cherchez
Phoca Member
Phoca Member
Posts: 39
Joined: 27 Dec 2009, 23:39

Re: List one category

Post 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
Cherchez
Phoca Member
Phoca Member
Posts: 39
Joined: 27 Dec 2009, 23:39

Re: List one category

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: List one category

Post 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?
If you find Phoca extensions useful, please support the project
Post Reply