Checking for album level in iteminfo.tpl

manderly

Joined: 2008-04-04
Posts: 71
Posted: Fri, 2008-04-18 12:56

Hi,

I'm attempting to make changes to the counts at the different levels. Thank you, Dave, for the tip on how to change the description of the counts on the root album level. Now I'm trying to figure out how to do it at the next level down...is this called the "album" level? I'm not sure...

I tried to do it by saying {elseif $theme.pageType=="album"} within the code below but it didn't work...maybe I don't understand how to set up multiple "if" statements...any suggestions would be deeply appreciated!!

<div class="size summary">
{if empty($theme.parents)}
{g->text one="Size: %d county"
many="Size: %d counties"
count=$item.childCount
arg1=$item.childCount}
{else}
{g->text one="Size: %d photo"
many="Size: %d photos"
count=$item.childCount
arg1=$item.childCount}
{/if}
{if $item.descendentCount > $item.childCount}
{g->text one="(%d photo total)"
many="(%d photos total)"
count=$item.descendentCount
arg1=$item.descendentCount}
{/if}
</div>

thanks a bunch,
Janine