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.
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
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.
Posts: 1857
This is done at the theme level.
What theme are you using?
Are you comfortable editing the code?
Posts: 16
'Comfortable' might be pushing it, but with a few pointers, I'll give it a go!
I'm using the default theme.
Posts: 1857
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.
Posts: 16
Thanks, will do.
Posts: 27300
Here is a hint:
$item->descendants_count(array(array("type", "=", "photo")))
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 90
i am using the curve theme and would LOVE to know how to implement this!
Posts: 693
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
Posts: 27300
from where?
Not that I know of as there is no API that I know for this.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team