Main categorie should use sub categories thumbnails

Phoca Gallery - image gallery extension
timmi.org
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 19 Oct 2013, 17:58

Main categorie should use sub categories thumbnails

Post by timmi.org »

Hello All,

I have a question regarding the main view in the gallery version 4.0.2 for Joomla3.

I have the following configured

main categorie <--- no pics
- sub cat <--- pics
- sub cat <--- pics
- sub cat <--- pics

I blocked sub categories in the main view and allowed empty categories.

Is there any possiblitly that the thumbnails from the subcat will be used in the mosaic of the main categorie?


Best regards
Timmi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Main categorie should use sub categories thumbnails

Post by Jan »

Hi, no there is no such option, as searching the images in subcategories can be very problematic (because of memory demands :-( )

Jan
If you find Phoca extensions useful, please support the project
timmi.org
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 19 Oct 2013, 17:58

Re: Main categorie should use sub categories thumbnails

Post by timmi.org »

Jan wrote:Hi, no there is no such option, as searching the images in subcategories can be very problematic (because of memory demands :-( )

Jan
Hi Jan,

do you see any possibility to add such feature on your roadmap?

Best regards
Timmi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Main categorie should use sub categories thumbnails

Post by Jan »

Hi, it is in feature request list but it is very problematic feature, such needs to be customized for server directly, I think, it is no possible to add it a default feature as it can make problems on the server :-( (memory problems) :idea:

Jan
If you find Phoca extensions useful, please support the project
timmi.org
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 19 Oct 2013, 17:58

Re: Main categorie should use sub categories thumbnails

Post by timmi.org »

Hi Jan,

thank you so much for the reply.
Why do you think it could be a memory issue?
Because of the database query or why?

Best regards
Timmi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Main categorie should use sub categories thumbnails

Post by Jan »

Hi, I don't think, I know it, most problematic for memory is loading all the tree of categories and searching in them. Normally, you get information about if category includes an image (with standard query) but to search the tree - not found in category, try to search all the subcategories - if they don't include, try to search their subcategories is really memory demanding (does not matter if you use tree traversal method or recursive function :-( )

Jan
If you find Phoca extensions useful, please support the project
timmi.org
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 19 Oct 2013, 17:58

Re: Main categorie should use sub categories thumbnails

Post by timmi.org »

Hi Jan,

is there a easy way to activate the search in subcategories as well?
I want to test the impact on my server.

Best regards
Timmi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Main categorie should use sub categories thumbnails

Post by Jan »

Hi, as I wrote above, such needs to be customized and new functions needs to be added for such feature :-( so no for now there is no easy way to do such feature :-( (in previous posts I wrote about why such features was not added)

Jan
If you find Phoca extensions useful, please support the project
nairu
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 02 Nov 2013, 19:43

Re: Main categorie should use sub categories thumbnails

Post by nairu »

Hi, first sorry for my bad english :oops: . A suggest to avoid problems with overload server or search in a subtree: in category include a field called "category thumbnail" (or other name), in which we can select an existing image (or upload new). This way category show this thumbnail if exists.
Post Reply