Gossamer Forum
Home : Products : DBMan : Customization :

List Categories Give a Count help

Quote Reply
List Categories Give a Count help
Unsure
Hi
I need help.
I have installed JPDeni's List Cats Give Count mod (Show cats and subcats on same page with validate mod).

It worked fine except that the number of subcat counts.

ex.

category1 (4) #<== 4 records are added
subcatA (4) # <== not correct only 1 record added
subcatB (4) # <== not correct only 1 record added
subcatC (4) # <== not correct only 2 record added

Then I checked mod and changed '$count_cat{$cat}' to read '$count_subcat{$subcat}' etc etc but I have no chance to solve the problem.

Thanks for reading my bad English!
Moto
Quote Reply
Re: [Moto] List Categories Give a Count help In reply to
Finally I got it worked!

This is original list cats give a count same page mod.
Quote:
print qq|&nbsp;&nbsp;&nbsp;
<a href="$db_script_link_url&Category=$encoded_cat&Subcategory=$encoded_subcat&Validated=Yes
&view_records=1">$cat</a> ($count_cat{$cat})<BR>
|;

I have change above code to read:
Quote:
print qq|&nbsp;&nbsp;&nbsp;
<a href="$db_script_link_url&Category=$encoded_cat&Subcategory=$encoded_subcat&Validated=Yes
&view_records=1">$subcat</a>($count_subcat{$cat}{$subcat})<BR>
|;

Anyway thanks
### Moto ###