Hide statistics if category has no images
-
- Phoca Member
- Posts: 12
- Joined: 19 Mar 2024, 11:27
Hide statistics if category has no images
Is it possible? I don't see any option, so I assume it requires code modification.
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Hide statistics if category has no images
Hi, which statistics do you mean?
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 12
- Joined: 19 Mar 2024, 11:27
Re: Hide statistics if category has no images
The statistics shown in category view. Are there any other statistics?
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Hide statistics if category has no images
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
components/com_phocagallery/views/category/tmpl/default_statistics.php
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 12
- Joined: 19 Mar 2024, 11:27
Re: Hide statistics if category has no images
Ok thanks. What other stats can be enabled? Because maybe I'd like them instead, but didn't see any other settings.
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Hide statistics if category has no images
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
Jan
If you find Phoca extensions useful, please support the project