Hi,
i want to check in a loop of album.php of the default template what the title of the next image is. This is because sometimes i have front and back pictures of one item (i mention front/back in the title).
This is the loop and i tried a couple of things but i always failed to find a proper solution.
[code]
while (next_image(false, $firstPageImages)):
$desc= getImageDesc();
// hide big pictures when not logged in...
if (zp_loggedin()){
$output.= "\n";
}else{
$output.= "\n";
}
$output.= "";
$last_image=getImageThumb(getImageTitle());
endwhile;
[/code]
regards Volkan
Hi sbillard,
thanks i will use the custom data field but i want to display the front and back images next to each other. Thats why i need to know if the next image is the back of an item so that i can output different html.
it must be something like this but i don't know how to access information of the next image.
[code]
`
//next image
if ($_zp_NEXT_image->getCustomData()=='back'){
// don't close the div
echo "n";
}elseif ($_zp_current_image->getCustomData()==back){
//close the div containing two images
echo "";
}else{
//standard one image div having no back image
echo "n";
}
`
[/code]
If you know an easier solution i would be gratefull to hear it...
regards Volkan
If someone has similar problem. This was the solution:
`
while (next_image(false, $firstPageImages)):
$desc= getImageDesc();
$output.= "";
$output.= "description:
".$desc."
n";
// hide big pictures when not logged in...
if (zp_loggedin()){
$output.= "n";
}else{
$output.= "n";
}
if (strpos(getNextImageURL(),"back")!=''){
next_image(false, $firstPageImages);
if (zp_loggedin()){
$output.="";
}else{
$output.="";
}
}
$output.= "";
$last_image=getImageThumb(getImageTitle());
endwhile;
`
gr volkan