ZenphotoCMS Forum
display first image of album 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: display first image of album on index (/thread-2070.html)



display first image of album on index - hamsterbacke82 - 2008-01-12

My problem is that I want to display the first image of an album on the index page one time.. if possible including a link to that album..
I got as far as finding a thread which deals with a similar problem and this code:

` `

The problem is now to display an image thumbnail but not use the "while-next-Album"
function as it should be a unique image...

I hope somebody understands what my problem is and might have a hint as I'm no php expert...




display first image of album on index - sbillard - 2008-01-12

You will need to gain a bit of php knowledge. You can find the documentation of all the relevant zenphoto functions on the zenphoto.org 'User Documentation' page.




display first image of album on index - hamsterbacke82 - 2008-01-13

Thank you, I'm trying to gain php knowledge all the time, just sometimes I get kind of stuck




display first image of album on index - acrylian - 2008-01-13

hamsterbacke82: So you want to show only one unique image of one album on index.php, like on a photoblog? If you could use the nightly build and the printlatestimages function that now can show the latest (=first?) image of an album. See the documentation for more info.




display first image of album on index - hamsterbacke82 - 2008-01-14

Thank you I will keep on trying