Hide statistics if category has no images

Phoca Gallery - image gallery extension
Destroy666
Phoca Member
Phoca Member
Posts: 12
Joined: 19 Mar 2024, 11:27

Hide statistics if category has no images

Post by Destroy666 »

Is it possible? I don't see any option, so I assume it requires code modification.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide statistics if category has no images

Post by Jan »

Hi, which statistics do you mean?
If you find Phoca extensions useful, please support the project
Destroy666
Phoca Member
Phoca Member
Posts: 12
Joined: 19 Mar 2024, 11:27

Re: Hide statistics if category has no images

Post by Destroy666 »

The statistics shown in category view. Are there any other statistics?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide statistics if category has no images

Post by Jan »

Hi, yes, then this needs to be customized e.g. with template override - the category view - to get the count of images and if there is no image, then to hide the statistics with condition:

components/com_phocagallery/views/category/tmpl/default_statistics.php

Jan
If you find Phoca extensions useful, please support the project
Destroy666
Phoca Member
Phoca Member
Posts: 12
Joined: 19 Mar 2024, 11:27

Re: Hide statistics if category has no images

Post by Destroy666 »

Ok thanks. What other stats can be enabled? Because maybe I'd like them instead, but didn't see any other settings.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide statistics if category has no images

Post by Jan »

Hi, it depends on which statistics you exactly want to have. In category view, there is statistics about count of images in category, there is statistic of viewed items, in download (popup window) there is e.g. statistics of downloaded images, etc. etc.

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