Index displays photos from latest gallery

Hi all,

What I'd like to do seems simple enough, but some searching and digging around hasn't been able to provide me with the answer I'm looking for...

What I'd like to do is to have the homepage of my zenphoto site display all of the photos from my most recently created gallery. So basically the homepage acts as a gallery page.

Is this possible, and if so how would I go about accomplishing it? Thanks in advance.

Comments

  • I assume that your home page is different from your gallery page. If so, look at the zenphoto hacks http://www.zenphoto.org/2008/01/hacks/ for using zenphoto as a plugin.

    You will have to do some investigation on how to decide which album is most recent. Once you have that, just setup the album as the current album and use the next image loop. See the functions guide for various functions which may be of help.
  • Hi,

    Sorry for the huge delay, my photo project got placed on the backburner.

    No, my home page is not different from my gallery page. My home page will be the gallery page of whichever gallery is newest.

    Is there any easy way just to make the homepage of my zenphoto installation the newest gallery page?

    Thanks so much.
  • You should probably look into the zenpage plugin and the zenpage-default them which comes with it.
  • acrylian Administrator, Developer
    No need for Zenpage here, simply use the image_album_statistics plugin's functions to show the latest album.
  • Thanks for the reply, what I'm trying to do is display all of the images from the most recent album.

    What I have used is: <?php printLatestAlbums(1) ?> which isn't displaying anything, what have I done wrong?
  • acrylian Administrator, Developer
    That would mean you have no albums in your gallery or you are not logged in and the album is unpublished. If you have only one, that should display that one.

    If you want the images of the latest album you can use `printLatestImages()` that has also the option for a specific album. Of course you have to set the number of images to the same number that album has images.

    If that all does not fit you probably will have to write your own function using the classes methods.
  • I now see that `<?php printLatestAlbums(1) ?>` is working, but the image it is outputting isn't displaying.

    The code above is outputting:
    `




    image




    `
    But no image is displaying.

    Having said that, I suppose this isn't even the solution I want as it will only be displaying a link to the album and the album thumbnail, whereas I want all of the images to be displayed from that album.

    Looks like I will be looking into `printLatestImages()`.

    Thanks.
Sign In or Register to comment.