ZenphotoCMS Forum
Show the URL of a thumb (in album.php) - 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: Show the URL of a thumb (in album.php) (/thread-10396.html)



Show the URL of a thumb (in album.php) - kurtko - 2012-09-11

Hi,

I have several subalbums and I need to get the url of the thumb images shown in album.php.

For exameple:

while (next_album):
printAlbumThumbImage ();
getAlbumLinkURL ();
endwhile;

In this example I get the link of the next subalbum but not the url of the thumb image. So I need to go to image.php in the next page.

If do this in album.php nothing happens because the is a subalbum:

while (next_image()):
getImageLinkURL();
endwhile;

It's possible to show the url image directly in a subalbum?

Thanks.




Show the URL of a thumb (in album.php) - acrylian - 2012-09-11

image url within next_image() loop:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetImageThumb

image url of the album thumb within next_album():
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetAlbumThumb

Out side the loops (and also within) also:
http://www.zenphoto.org/news/zenphotos-object-model-framework