Size comment under Albums

neil40

Joined: 2009-03-09
Posts: 20
Posted: Tue, 2009-09-08 09:18

Is it possible to change what the

Quote:
Size: 21 Items (90 Items in Total)

under an Album that has sub-albums says?
Saying Items twice I find a little misleading, I would like it to say
Size: 21 Sub-Albums (90 Pictures in Total)

Can I customise to do that?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2009-09-08 13:32

modules/core/templates/blocks/ItemInfoo.tpl

  {if !empty($showSize) && $item.canContainChildren && $item.childCount > 0}
  <div class="size summary">
    {g->text one="Size: %d item"
	     many="Size: %d items"
	     count=$item.childCount
	     arg1=$item.childCount}
    {if $item.descendentCount > $item.childCount}
    {g->text one="(%d item total)"
	     many="(%d items total)"
	     count=$item.descendentCount
	     arg1=$item.descendentCount}
    {/if}
  </div>
  {/if}

Is the bit of code you need to change. It will get complex to determine if the item count is sub-albums or not.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team