Member
Member
BertSimons   2010-06-19, 01:10
#1

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..

Member
Member
micheall   2010-06-19, 01:49
#2

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

Member
Member
BertSimons   2010-06-19, 02:10
#3

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

Member
Member
kagutsuchi   2010-06-19, 02:27
#4

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().

Member
Member
sbillard   2010-06-19, 02:32
#5

You can make use of the zenpage function zenpageAlbumImage()

Member
Member
BertSimons   2010-06-19, 09:31
#6

`

`
did the job, thanks!!!!!

Administrator
Administrator
acrylian   2010-06-19, 09:35
#7

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.