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
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);?>
`
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.
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
}
`