I have subalbums, when you look at a gallery and go into it, you might get a view of 4 to 6 thumbs all the same size (using the default template). My main thumb representing the sub album is a cutout, and it shows along with the others. Is there a way to pull the image that shows on the image template on to the album? I want a large image and the thumbs on the album page, and then I will be customizing the image page to suit my needs. Thanks in advance. My alternative is to "skip" the display of thumbs in the sub album to go directly to the image template (not that I know how to do that) and I prefer not to so that I can take advantage of the full navigation of the templates. Rick.
Comments
The first page you see when you visit the home page of your gallery is the index.php page of the theme We will call this page the gallery page. On this page are shown thumbnails of the first level albums in your gallery. If you click on one of these thumbnails, you are taken to the album.php page of your theme. We will call this page the album page.
On the album page there may be album thumbnails if the album itself contains albums. We will call these subalbums thumbnails. There may also be thumbnails to images if the album contains them. We will call these image thumbnails.
If you click on a subalbum thumbnail you will be taken to another album page. If you click on an image thumbnail you will be taken to the image.php page of your theme. We will call this the image page.
So, by these definitions, do you have subalbums in your albums or just images? If you have subalbums and you don't show the subalbum thumbnails, then there would be no way to get to them.
What is it you mean by the main thumb? It is certainly possible to display an image from the album on the album page. For instance, the Effervescence+ theme shows a (cropped) randomly selected image in the header of the album page. Is it something like this you wish?
If it is a specific image, which image would it be--the first? There is a function that will get an image from an album based on its image #. That could then be formatted and displayed on the album page.
`$_zp_current_image = $_zp_current_album->getImage(0);
getDefaultSizedImage();`
This replaces the next_album() loop on album.php:
`
<?php while (next_album()): ?>
<?php $firstimage = $_zp_current_album->getImages(); // get the first image of the current album in the loop?>
" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumThumb(); ?>
" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?>
<?php endwhile; <br />
This part does not exist in the default theme and needs to be added on image.php:
`
<?php if(getNumImages() > 1) { while (next_image(false, $firstPageImages)): // added the thumbs loop ?>
<?php endwhile; } ?>
<?php printAlbumDesc(); ?>
You have to figure the CSS styling for it yourself of course.
and got it to work. Thankyou