ZenphotoCMS Forum
how to get CustomAlbumThumbImage from album object - 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: how to get CustomAlbumThumbImage from album object (/thread-7219.html)



how to get CustomAlbumThumbImage from album object - BertSimons - 2010-06-19

Hi

I want to display all the thumbs from the subalbums of a certain album on a zenpage page.
in the codeblock of the zenpage I added;
''

this works and correctly shows the Album thumbs of the subalbums..

but how would I proceed to get the custom sized thumbs from am object? like printCustomAlbumThumbImage(getBareAlbumTitle(), 130); in a normal loop does?

thanks..




how to get CustomAlbumThumbImage from album object - micheall - 2010-06-19

Have you tried this in your foreach loop?
printCustomAlbumThumbImage(($subalbumobj->getAlbumThumb()), 130);




how to get CustomAlbumThumbImage from album object - BertSimons - 2010-06-19

Hi Micheall, just tried it but broke the page....




how to get CustomAlbumThumbImage from album object - kagutsuchi - 2010-06-19

You can't get the custom sized images directly from an object. The function doesn't have the object as a parameter, but instead uses $_zp_current_album, so setting the appropriate album to that variable should allow you access to that image using printCustomAlbumThumbImage().




how to get CustomAlbumThumbImage from album object - sbillard - 2010-06-19

You can make use of the zenpage function zenpageAlbumImage()




how to get CustomAlbumThumbImage from album object - BertSimons - 2010-06-19

`

`
did the job, thanks!!!!!




how to get CustomAlbumThumbImage from album object - acrylian - 2010-06-19

zenpageAlbumImage()does only display a sized image without cropping. If you want also cropping actually using
$albumthumbobj = $subalbumobj->getAlbumThumbImage(); // this returns an image object of the album thumb
$albumthumbobj->getCustomImage(...);
`
is what you are looking for.