Page 1 of 1

Hide statistics if category has no images

Posted: 08 Jun 2024, 09:32
by Destroy666
Is it possible? I don't see any option, so I assume it requires code modification.

Re: Hide statistics if category has no images

Posted: 09 Jun 2024, 16:14
by Jan
Hi, which statistics do you mean?

Re: Hide statistics if category has no images

Posted: 10 Jun 2024, 02:28
by Destroy666
The statistics shown in category view. Are there any other statistics?

Re: Hide statistics if category has no images

Posted: 11 Jun 2024, 16:14
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

Re: Hide statistics if category has no images

Posted: 11 Jun 2024, 22:25
by Destroy666
Ok thanks. What other stats can be enabled? Because maybe I'd like them instead, but didn't see any other settings.

Re: Hide statistics if category has no images

Posted: 18 Jun 2024, 16:29
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