Feature Request: Image Count

laptopalias

Joined: 2011-09-29
Posts: 16
Posted: Fri, 2011-10-14 07:49

When hovering over an album, as well as the other stuff, it would be nice to see a count of the number of images in that folder, and perhaps a 'last accessed/visited' date.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Fri, 2011-10-14 23:41

This is done at the theme level.
What theme are you using?
Are you comfortable editing the code?

 
laptopalias

Joined: 2011-09-29
Posts: 16
Posted: Sat, 2011-10-15 12:59

'Comfortable' might be pushing it, but with a few pointers, I'll give it a go!

I'm using the default theme.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sat, 2011-10-15 15:18

Ok. I'm totally time strapped right now, but bump this in a few days if no one else has responded and I'll see if I can get you started.

 
laptopalias

Joined: 2011-09-29
Posts: 16
Posted: Sat, 2011-10-15 21:28

Thanks, will do.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2011-10-16 16:49

Here is a hint:
$item->descendants_count(array(array("type", "=", "photo")))

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
timned88

Joined: 2011-08-31
Posts: 90
Posted: Tue, 2011-10-18 14:59

i am using the curve theme and would LOVE to know how to implement this!

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Wed, 2011-10-19 00:17
floridave wrote:
Here is a hint:
$item->descendants_count(array(array("type", "=", "photo")))

Is there also a hint for an elegant way to count the views of descendants that are photos? At the moment I use this code to get the descendants plus a loop to count the views, but surely there must be a more elegant way?

U-G

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2011-10-19 02:49
Quote:
curve theme

from where?

Quote:
but surely there must be a more elegant way?

Not that I know of as there is no API that I know for this.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team