Page 1 of 1

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

Posted: 01 Jan 2012, 09:56
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

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

Posted: 01 Jan 2012, 12:21
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

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

Posted: 01 Jan 2012, 16:53
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...

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

Posted: 01 Jan 2012, 22:15
by Benno
Ok.

Kind regards,
Benno

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

Posted: 04 May 2012, 00:46
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!

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

Posted: 04 May 2012, 16:23
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

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

Posted: 09 May 2012, 15:51
by shapna
Yes that worked great Benno. Thanks :)

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

Posted: 09 May 2012, 16:00
by Benno
You're welcome!

Kind regards,
Benno