There is a global varaiable `$_firstPageImages` which should contain the number you want. If it is not setup then you need to call the `setThemeColumns()` function.
Sorry for bringing this thread up again.. I have a little problem with this piece of code from Wete's script:
`$imageobject->getDefaultTitle()`
Printing the title attribute for the hidden links doesn't print the string value from the database, it just prints the filename without the extension (i.e. "filename_13" instead of "Filename Thirteen"). This messes up the image presentation a bit for paginated albums. All of this is happening while it's counterpart in the visible thumb links loop
Well, actually, this function really should have been a private method (of the image object). But I guess it got mised. PHP 4 did not allow for private methods so none existed when we did still support PHP 4. Perhaps not all that should be private got discovered when we changed for PHP 5 and marked methods private.
At any case, the documentation will generally tell you the use of a function. In this case no such documentation would be an indication that the function is not inteneded for general use.
Comments
`
<?
$albumseiten = getTotalPages();
$aktuelleseite = getCurrentPage();
$subalbumzeilen = floor(($_zp_current_album->getNumAlbums() + 2) / 3);
$thumbsersteseite = (12 - (3 * $subalbumzeilen));
if (($albumseiten > 1) AND ($aktuelleseite > 1)) {
for($vorseite = 1; $vorseite < $aktuelleseite; ++$vorseite) {
$bilder = $_zp_current_album->getImages($vorseite, $thumbsersteseite);
$i=0;
foreach ($bilder as $bild) {
$bild = $bilder[$i];
$imageobject = newImage($_zp_current_album,$bild);
$bildnummer = $imageobject->getIndex()+1;
++$i;
echo'getFullImage().'" title="'.$imageobject->getDefaultTitle().' ('.$bildnummer.'/'.$_zp_current_album->getNumImages().')">'."\n";
}
}
}
?>
<?php while (next_image()): ?>
<?php endwhile; ?>
<?
$albumseiten = getTotalPages();
$aktuelleseite = getCurrentPage();
$subalbumzeilen = floor(($_zp_current_album->getNumAlbums() + 2) / 3);
$thumbsersteseite = (12 - (3 * $subalbumzeilen));
if (($albumseiten > 1) AND ($aktuelleseite < $albumseiten)) {
for($nachseite = ($aktuelleseite+1); $nachseite < ($albumseiten+1); ++$nachseite) {
$bilder = $_zp_current_album->getImages($nachseite, $thumbsersteseite);
$i=0;
foreach ($bilder as $bild) {
$bild = $bilder[$i];
$imageobject = newImage($_zp_current_album,$bild);
$bildnummer = $imageobject->getIndex()+1;
++$i;
echo'getFullImage().'" title="'.$imageobject->getDefaultTitle().' ('.$bildnummer.'/'.$_zp_current_album->getNumImages().')">'."\n";
}
}
}
?>
`
Wete
Regards,
Adrian
`$imageobject->getDefaultTitle()`
Printing the title attribute for the hidden links doesn't print the string value from the database, it just prints the filename without the extension (i.e. "filename_13" instead of "Filename Thirteen"). This messes up the image presentation a bit for paginated albums. All of this is happening while it's counterpart in the visible thumb links loop
`<?php echo html_encode(getAnnotatedImageTitle()); ?>`
works just fine.. Also I would like to know if there is any way to get the image description?
(Something similar to this
`<?php echo html_encode(getImageDesc());?>`
I have tried looking here but with no succes http://www.zenphoto.org/documentation/classes/_Image.html )
Thank you very much!
http://www.zenphoto.org/news/zenphotos-object-model-framework#zenphotos-main-classes
Regards,
Adrian
At any case, the documentation will generally tell you the use of a function. In this case no such documentation would be an indication that the function is not inteneded for general use.