A few questions about dynamic albums

After the tip bryanbrazil gave me (search for 'jpg'), I now have a dynamic album representing all my images in chronoligical order (about 1500).

1. The thumbnail for that album is set to 'most recent', but that doesn't work. A small bug perhaps? It always switches back to 'random thumbnail'.

2. Somehow the slideshow takes forever to load on that album, while loading very quick in all the other (static) albums. How can I disable the slideshow link for this specific (and very large) dynamic album?

3. How can I add a small link beneath the thumb (in album.php) and under the larger image (in image.php) to the original album of that specific image? Something like: 'from album animals. The word animals then should be that link.

Thank you!

Comments

  • 3.

    on the search page I added this in the image loop below the thumb
    `
    <?php
    global $_zp_current_image;
    $album = $_zp_current_image->getAlbum();
    $title = $album->getTitle();?>
    found in album: <?php printImageLink($title);?>
    `
  • `$album->isDynamic()` will tell you if it is a dynamic album so you can omit the slideshow.
  • BertSimons: I tried your suggestion in search/php but I'm getting these warnings:
    Warning: Missing argument 2 for printImageLink(), called in www.spoenk.nl/beeldend/themes/spoenk-nieuw/search.php on line 81 and defined in www.spoenk.nl/beeldend/zp-core/template-functions.php on line 2272
    bloemen en planten


    sbillard: how can I use this? I tried 'if ($album->isDynamic()==true) { etc. }
    but that doesn't work.
  • To fix the warning, take a look at the Function Documentation here: http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintImageLink

    For sbillard's suggestion, your code should work. However, you don't have to check that it is true (it will be evaluated as a boolean anyway):

    `
    if ($album->isDynamic()) {
    // place code here
    }
    `
Sign In or Register to comment.