How to hide the number of images in a category?

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to hide the number of images in a category?

Post by Jan »

Hi, then you need to customize the php code directly (but really not sure how to explain it better than written in forum or documentation :-( )

Jan
If you find Phoca extensions useful, please support the project
marius
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 13 Jan 2013, 00:43

Re: How to hide the number of images in a category?

Post by marius »

Hiding in phoca 3.2.3
Go to /components/com_phocagallery/views/categories/tmpl
download file default_catimg.php

comment code as below (around line 33)

Code: Select all

if ($this->categories[$i]->numlinks > 0) {
	//echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';
	}
actlas
Phoca Member
Phoca Member
Posts: 10
Joined: 10 Dec 2014, 10:57

Re: How to hide the number of images in a category?

Post by actlas »

How can I make the number if images in a category appear next to a subcategory in category view please?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to hide the number of images in a category?

Post by Jan »

Hi, not sure if I understand correctly what you mean with "make the number if images in a category appear next ..."?

Jan
If you find Phoca extensions useful, please support the project
kaihying
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 10 Apr 2017, 08:49

Re: How to hide the number of images in a category?

Post by kaihying »

go to : component => com_phocagallery => views => categories => tmpl => default_categories.php
and edit :
find :
if ($cv->numlinks > 0)
change to :
if ($cv->numlinks = 0)
Post Reply