Display Numbers - only show articles?

Phoca Documentation - creating documentation in Joomla! CMS
jsymedia
Phoca Member
Phoca Member
Posts: 10
Joined: 16 Apr 2012, 21:32

Display Numbers - only show articles?

Post by jsymedia » 21 Apr 2012, 10:39

I would like my main component area to only display the article amount numbers and not the sub-category amounts in the "Display Numbers in Category(ies) View".

I do not have any sub-categories so it's displaying like "0/5" on every category.

http://mylifeneeds.com/article-directory.html

Do you know where I can remove that code and how?

Thank you for your help. :)

dip
Phoca Member
Phoca Member
Posts: 43
Joined: 09 Apr 2012, 16:33
Location: Russia

Re: Display Numbers - only show articles?

Post by dip » 26 Apr 2012, 18:58

in components/com_phocadocumentation/views/sections/tmpl/default.php
find

Code: Select all

if ($this->tmpl['displaynumdocsecsheader'] == 1) {
			echo ' <small>('.$value->numcat.'/' . $numDoc .')</small>';
		}
and change to

Code: Select all

if ($this->tmpl['displaynumdocsecsheader'] == 1) {
			echo ' <small>('. $numDoc .')</small>';
		}
(delete ".$value->numcat.'/'")

view result

Post Reply