coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: doppler on December 08, 2011, 11:52:05 AM

Title: How to display number of ALL photos including subcategories
Post by: doppler on December 08, 2011, 11:52:05 AM
My main page has simple, regular view - just:
picture - name of category - number of pictures

In general view of main categories - how to have numebr of ALL pictures in category, including subcategories (and inlcuding all photos added by keywords).


My problem is:
I had category with 100 albums. I did sub-categories and moved 97 albums into them. Now my main page display only sum of those three albums which stay in main category.
Also summation in whole page doesn't count picture added to albums (by keywords) in category views.
Title: Re: How to display number of ALL photos including subcategories
Post by: doppler on December 09, 2011, 12:22:36 AM
I found that code where number of albums and pictures is in themes.inc.php


'{ALB_COUNT}' => cpg_float2decimal($category[2]),
'{PIC_COUNT}' => cpg_float2decimal($category[3]),


How to change this section to have sum of ALL albums inside category, and sum of ALL pictures ?
Please
Title: Re: How to display number of ALL photos including subcategories
Post by: ΑndrĂ© on December 12, 2011, 02:44:40 PM
There's no straightforward solution yet.