How to: display images from all subcategories in root cat.

Phoca Gallery - image gallery extension
Shh
Phoca Member
Phoca Member
Posts: 20
Joined: 31 Dec 2011, 21:42

How to: display images from all subcategories in root cat.

Post by Shh »

Hi,

First of all - great extension - but I guess you get that a lot ;]

Second - my problem. I've got a site where there is one root category with no images of it's own, but has 3 subcategories.
Now the standard display type is showing me a link to my three subcategories in the form of a folder or a random image from the subcat. What I'd like to achieve though is displaying ALL images from ALL the subcategories when visiting the root category.

In short, I'd like the user to first see all images on my site.

I've tried to find the solution in the documentation, FAQ and forums but failed :x

Oh, and it would be even better if it were possible to do it like this

Image

Best regards,
Shh
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9823
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: How to: display images from all subcategories in root ca

Post by Benno »

Hi,
you can do this with Phoca Gallery Plugin within an article.
https://www.phoca.cz/documents/14-phoca- ... ery-plugin

Kind regards,
Benno
Shh
Phoca Member
Phoca Member
Posts: 20
Joined: 31 Dec 2011, 21:42

Re: How to: display images from all subcategories in root ca

Post by Shh »

Great : ) Thanks. Kind of thought it could be done by hacking the component somehow.

Anyway - Vielen dank ;P
You should add this to the FAQ or something...
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9823
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: How to: display images from all subcategories in root ca

Post by Benno »

Ok.

Kind regards,
Benno
shapna
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 04 May 2012, 00:31

Re: How to: display images from all subcategories in root ca

Post by shapna »

Hello I wanted to do the exact same thing Shh needed. So I installed the plug-in, created two sub categories under the main category and created an article with the following code

{phocagallery view=categories}

But it is showing both category title and just one image next to each title :(

I also tried adding following code to the article

{phocagallery view=categories|limitcount=2}

but nothing works. Can you please tell me how I can get it to show all the images in each article in one page ? Thanks!
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9823
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: How to: display images from all subcategories in root ca

Post by Benno »

Hi,
you should paste two different codes into your article:
1.) {phocagallery view=category|categoryid=1} (if the category ID of the first category that include images is 1)
2.) {phocagallery view=category|categoryid=2} (if the category ID of the second category that include images is 2)
See: https://www.phoca.cz/documents/14-phoca- ... ery-plugin

Kind regards,
Benno
shapna
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 04 May 2012, 00:31

Re: How to: display images from all subcategories in root ca

Post by shapna »

Yes that worked great Benno. Thanks :)
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9823
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: How to: display images from all subcategories in root ca

Post by Benno »

You're welcome!

Kind regards,
Benno
Post Reply