Album has Sub Albums

undertoe
undertoe's picture

Joined: 2008-01-31
Posts: 32
Posted: Fri, 2008-03-07 18:11

Whats the best way to figure out if an album has sub-albums with php?

Also how do i change the size on the thumbnail display {g->image id="%ID%" item=$child image=$child.thumbnail class="%CLASS% giThumbnail"}

 
undertoe
undertoe's picture

Joined: 2008-01-31
Posts: 32
Posted: Fri, 2008-03-07 20:18

Never mind I figured it out.

{if $theme.item.childCount == $theme.item.descendentCount}
Contains Albums & Pictures
{else}
All pictures in album
{/if}

As for the thumbnail size i got a work around.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Wed, 2008-03-12 19:53

Why do you need to know in PHP if an album has sub-albums? I think I know how to do it in a tpl file.

To change the size of the thumbnail click edit album (do it on the root album if you want to do it all) then on the Album tab change the thumbnail size.

 
undertoe
undertoe's picture

Joined: 2008-01-31
Posts: 32
Posted: Wed, 2008-03-12 20:08

is this not the THEME DEVELOPMENT forum....... nevermind I figured it out already.

Thanks for the help