Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Seeing Total Category File Count on Index Page  (Read 5156 times)

0 Members and 1 Guest are viewing this topic.

blazer380

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
Seeing Total Category File Count on Index Page
« on: October 06, 2004, 08:05:56 am »

I have created Sub-categories under one of my main categories. All the files inside the main category have been moved to the sub-categories within it. Now when I look on the index page, the main category shows 0 for file count. How can I make it show the file count for all the files within it?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Seeing Total Category File Count on Index Page
« Reply #1 on: October 06, 2004, 08:40:22 am »

link?
Logged

blazer380

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
Re: Seeing Total Category File Count on Index Page
« Reply #2 on: October 07, 2004, 06:08:33 pm »

This is on the index page. As you can see it only shows 8 for total files.

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.supertekie.com%2Fimage01.jpg&hash=442212734cb520ac54cc25d469bc0dee822f6eab)

This is inside the category, as you can see it only counted the 8 files in the albums, not the hundreds that are in the sub categories.

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.supertekie.com%2Fimage02.jpg&hash=9dd768bb08fee607d1cf5183506f5fc38072eda3)

So how can I make it that the Ringtones on the index page shows 2139 in the Files
« Last Edit: October 07, 2004, 07:08:35 pm by blazer380 »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Seeing Total Category File Count on Index Page
« Reply #3 on: October 07, 2004, 06:10:12 pm »

blazer380,

The images in your post aren't showing up.
Logged

blazer380

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
Re: Seeing Total Category File Count on Index Page
« Reply #4 on: October 07, 2004, 07:09:48 pm »

ok, the images in my previous post should show up now...
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Seeing Total Category File Count on Index Page
« Reply #5 on: October 07, 2004, 07:28:13 pm »

We still need a link.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

blazer380

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
Re: Seeing Total Category File Count on Index Page
« Reply #6 on: October 07, 2004, 09:44:00 pm »

go to www.s-c-u-m.com/cell

use username: test123
password: testing321

Logged

theK

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Seeing Total Category File Count on Index Page
« Reply #7 on: October 11, 2004, 03:51:24 am »

Hmmm, I noticed the same thing with mine (Installed just 6 days ago, latest version, v1.3.2).
I have not uploaded any pics yet, but have started creating albums and a subcategory (filled with albums as well), within a category. I set the Category listing to only show 1st level, and not show any albums underneath.

For example, I have a first-level Category called Event. The outline is as follows:

Event
- BBall (a subcategory)
  + BBall Album1
  + BBall Album2
- Hunting1 (an album)
- Hunting2 (an album)

On the main page, the total Album count for the Event category is 2. It does not count its subcategories' albums (and I guess it goes the same way with its subsubcategories. I have not tried creating a subsubcategory and its albums yet.). The main page total count only shows the number of albums directly under the first level category.

I would prefer the main page Category listing shows the total number of albums (& files) of each first-level category, since this is the logically correct way of representing your collection.

I'm surprised no one has brought this issue up in the forum other than blazer380 and me.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Seeing Total Category File Count on Index Page
« Reply #8 on: October 11, 2004, 05:37:37 am »

This has been brought up several times already, search the board if you doubt this. The stats on the index page only shows for the elements directly within the page, no child elements are taken into account. This has been done to reduce the number of queries needed to build the page - the page load time of the index page would raise significantly if it did. I don't remember for sure, but I think there has been a thread about it that showed a solution (meaning: displayed the stats for all child objects, with the drawback of many additional queries involved). Imo those stats aren't significant anyway, I'd rather remove them completely.

Joachim
Logged

theK

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Seeing Total Category File Count on Index Page
« Reply #9 on: October 11, 2004, 11:44:37 am »

This has been brought up several times already, search the board if you doubt this. The stats on the index page only shows for the elements directly within the page, no child elements are taken into account. This has been done to reduce the number of queries needed to build the page - the page load time of the index page would raise significantly if it did. I don't remember for sure, but I think there has been a thread about it that showed a solution (meaning: displayed the stats for all child objects, with the drawback of many additional queries involved). Imo those stats aren't significant anyway, I'd rather remove them completely.

Joachim

I see.
I guess my keywords during the search weren't good enough since I did not come up with the related thread. Gotta think harder of those keywords the next time.
I can see GauGau's point, that if the additional queries involved to display the stats for all child objects, performance will suffer.
Thanks for your input, GauGau.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.