Change The "Number of Items" calculation

wildmanmatt

Joined: 2008-07-10
Posts: 21
Posted: Sat, 2008-07-12 18:58

Hi,

I want "Number of Items" to simply tell me how many images there are in the album (and all sub-albums).

So, where "Number of Items" appears referring to an album, I'd like the number to actually be how many images are in that album and its sub-albums.

Where it appears at the top-right of the screen, I would like it to show how many images there are in the album the user is currently in and albums contained within the one that the user is in.

I have changed ItemInfo.tpl to the following:

{if !empty($showSize) && $item.canContainChildren && $item.childCount > 0}
<div class="size summary">
{g->text one="Number of Images Albums: %d"
many="Number of Images and Albums: %d"
count=$item.childCount
arg1=$item.childCount}
{if $item.descendentCount > $item.childCount}
{g->text one="(%d images)"
many="(%d images)"
count=$item.descendentCount
arg1=$item.descendentCount}
{/if}
</div>
{/if}

But I would much prefer it just to count images.

My site is at: www.worldwildlifeimages.com/birds

Many Thanks,

Matt