Page 1 of 1

[solved] category numbers show (9/0) [v3.0 migration]

Posted: 19 Apr 2013, 21:24
by dontflinch
categories stat numbers shows as ([correct-number-of-subcats]/0)

in working version it showed the (number of subcats/total number of files in all those categories), (9/170) for example .

is this problem from the migration? is there someway to force it to recognize the total number of files?

I know it is this bit involved:

Code: Select all

			if ($this->t['displaynumdocsecs'] == 1) {
					$catOutput  .=' <small>('.$valueCat->numdoc .')</small>';
				}
				$catOutput 	.= '</div>' . "\n";
				$numDoc = (int)$valueCat->numdoc + (int)$numDoc;
				$numSubcat++;
thanks for any help!

Re: [solved] category numbers show (9/0) [v3.0 migration]

Posted: 20 Apr 2013, 17:23
by dontflinch
I looked at this closer and here is what I changed that appears to fix it:

Code: Select all

			if ($this->t['displaynumdocsecsheader'] == 1) {
				$pdTitle .= ' <small>('.$numSubcat.'/' . $value->numdoc .')</small>';
to this:

Code: Select all

			if ($this->t['displaynumdocsecsheader'] == 1) {
				$pdTitle .= ' <small>('.$numSubcat.'/' . $numDoc .')</small>';

edit: sorry, that was in categories > default.php template override file.

Re: [solved] category numbers show (9/0) [v3.0 migration]

Posted: 25 Apr 2013, 19:12
by Jan
Hi, thank you for the info, I will fix it for next version.

Jan