Number of Images

Phoca Gallery - image gallery extension
w_ds
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 12 Jun 2008, 14:08

Number of Images

Post by w_ds »

Hi All!

I'm new to Phoca Gallery and would like to use it for Joomla websites I'm designing.

One new customer asked me, if I can switch off the number of images each category contains on the category-list. Is that possible? I found no parameter to change that. If necessary I would also customize the PHP-files but I don't know where this number is put into the page.

Thx in advance.

Regards,
Stefan (Austria)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Number of Images

Post by Jan »

Hi,

components\com_phocagallery\views\categories\tmpl\default.php

this should be removed:

Code: Select all

echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';
If you find Phoca extensions useful, please support the project
ifritz
Phoca Member
Phoca Member
Posts: 13
Joined: 29 May 2008, 23:58

Re: Number of Images

Post by ifritz »

Is this the image count, which is displayed besides every categorie?
i.e "Gallery XYZ 07 2008 (200)"
I want to hide this as well, but your hint is not working for me.
The gallery is still displaying the image count.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Number of Images

Post by Jan »

??? if you remove the code, it should be not displayed, try to clear cache on your browser...
If you find Phoca extensions useful, please support the project
jbx
Phoca Enthusiast
Phoca Enthusiast
Posts: 66
Joined: 19 Apr 2009, 19:18

Re: Number of Images

Post by jbx »

Jan, I tried this and it didn't work. any other ideas?

the gallery is at

http://www.northolmstedperformance.com/ ... Itemid=203

Thanks
jbx
Phoca Enthusiast
Phoca Enthusiast
Posts: 66
Joined: 19 Apr 2009, 19:18

Re: Number of Images

Post by jbx »

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Number of Images

Post by Jan »

Hi, on your site the code is not removed, try the code in:

components\com_phocagallery\views\categories\tmpl\default.php

Code: Select all

echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';
Be aware there are different methods of displaying categories, so you need to remove at all places

Jan
If you find Phoca extensions useful, please support the project
jbx
Phoca Enthusiast
Phoca Enthusiast
Posts: 66
Joined: 19 Apr 2009, 19:18

Re: Number of Images

Post by jbx »

Thanks again for the help
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Number of Images

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
jbx
Phoca Enthusiast
Phoca Enthusiast
Posts: 66
Joined: 19 Apr 2009, 19:18

Re: Number of Images

Post by jbx »

is there a way to make this a feature that can be turned on/off in the next upgrade?
Post Reply