List subalbums on index

Hi,
I just discovered ZenPhoto and I'd like to create a custom theme.

I'm trying to list subalbums of albums in index.php.

So far i got :

`
$siblings = $_zp_current_album->getSubalbums();
foreach ($siblings as $albumname) {
album = New Album($_zp_gallery, $albumname);
echo "getAlbumLink()."\">".$album->getTitle()."";
}
`
Now i'm trying to add thumbs with a custom width and height but i can't find how.

Can someone help me ?
Is that code the fastest/best one ? (many mysql requests ??)

Thanks.

Comments

  • Please review the function descriptions in the user guide for the various zenphoto functions. There is a function for custom album thumbs.
Sign In or Register to comment.