Display subcategories in image module

Phoca Gallery - image gallery extension
miroen
Phoca Member
Phoca Member
Posts: 33
Joined: 20 Jan 2015, 17:01

Display subcategories in image module

Post by miroen »

Hello,

I'm making good use of your wonderful photogallery conponent and my users/viewer are content with it as well.
Evenso I have one question: is it possible to show the latest subcategory per main category?
Let me explain, I have the following setup:
Main 1
- sub 1.1
- sub 1.2
- sub 1.3
main 2
- sub 2.1
- sub 2.2
...
Now I want for each main category an image module showing images of the latest added subcategory, is this possible?

Kind regards,
Jeroen
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49014
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display subcategories in image module

Post by Jan »

Hi, in the module, you can select categories, from which the images will be displayed, but they need to be selected. To display them by latest added subcategory you need to customize it directly in the code - find the latest subcategory and use its id.

You can use the module for latest images but this displays latest added images but not latest added subcategories :idea:

Jan
If you find Phoca extensions useful, please support the project
miroen
Phoca Member
Phoca Member
Posts: 33
Joined: 20 Jan 2015, 17:01

Re: Display subcategories in image module

Post by miroen »

Hello Jan,

Thank you for your answer. The thing is the main categories are merely there for grouping the "real" albums.
We are a scouting organisation with several groups. So I've setup the gallery per group and the leaders can create albums with photos for each activity.
The group catalog will not contain any images.
What I would like is to show the latest added image from one of the albums inside the group catalog (so not the album itself). The module only looks in the main catalog and not inside its child catalogs (the actual albums).

The only question I had was if it is possible for the module to look inside the child catalogs as well.

kind regards,
Jeroen
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49014
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display subcategories in image module

Post by Jan »

Hi, the Phoca Gallery Image module:

- search in all categories
- if you select the category in options, it search only in this category

but if you need to search in subcategories of this category, you need to customize it directly in the code (to search all the subcategories of the category) :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply