![]() |
|
List subalbums on index - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: List subalbums on index (/thread-5024.html) |
List subalbums on index - ZeK - 2009-04-12 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 "<a>getAlbumLink()."\">".$album->getTitle()."</a>"; } ` 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. List subalbums on index - sbillard - 2009-04-12 Please review the function descriptions in the user guide for the various zenphoto functions. There is a function for custom album thumbs. |