Is it possible to bypass show an image?
Is it possible to set first image to show a category instead of random image?
Has that funciotn (getRandomImageRecursive) a bug for you?
Thanks in advance
Phoca Gallery Map Bug
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Gallery Map Bug
Hi, this function is mostly called one time or two times per category.
If you have some image in the category, it runs this function and return the image.
If you have no image in category but in subcategory, it runs this function, find not image so it runs the function for subcategory and return the image.
But for the next version I will add a special value to Categories Image Ordering parameter, which will try to find an image without recursive function (no ordering can be set for it and it will not search subcategories, so it will be faster but without any extra options)
Jan
If you have some image in the category, it runs this function and return the image.
If you have no image in category but in subcategory, it runs this function, find not image so it runs the function for subcategory and return the image.
But for the next version I will add a special value to Categories Image Ordering parameter, which will try to find an image without recursive function (no ordering can be set for it and it will not search subcategories, so it will be faster but without any extra options)
Jan
If you find Phoca extensions useful, please support the project
-
Pippozzo
- Phoca Member

- Posts: 26
- Joined: 08 Sep 2008, 19:12
Re: Phoca Gallery Map Bug
Thanks Jan, that enough!
I look forward to the next release.
As you know I have to solve this problem for months.
Thanks again
I look forward to the next release.
As you know I have to solve this problem for months.
Thanks again
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Gallery Map Bug
Added into 2.6.0 Alpha 3 version. It is called "Special" but be aware, you cannot order it and it ignores unpublished and unathorized images (it means all images can be displayed as folder image, It is because no additional sql will be run and no additional recursive function will be runned. The images is taken from the same sql as the category has. Disabling unpublished and unathorized will take an effect on categories, it cannot be handled)
Jan
Jan
If you find Phoca extensions useful, please support the project