Display how many photos in entire gallery

XCOM

Joined: 2002-12-30
Posts: 474
Posted: Fri, 2010-08-20 17:29

Hello!

I want to display how many photos are stored in my entire gallery (not per album or subalbum) in my footer via theme.tpl.
Is there a variable existing which i can read out?

________________________________________
[G2] Wallpaper Fotogalerie | Gallery Blog | G3(dev) Barcelona Fotos

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-08-20 20:37
{g->block type="core.ItemInfo"
          item=$theme.item
          showDate=false
          showSize=true
          showOwner=false
          class="giInfo"}

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
XCOM

Joined: 2002-12-30
Posts: 474
Posted: Sat, 2010-08-21 07:27

Tbank you for response.

This function prints the amout of all elements (photos + directories) and it does not count hidden photos for guests.

________________________________________
[G2] Wallpaper Fotogalerie | Gallery Blog | G3(dev) Barcelona Fotos