How do I show an album on the index page?

I was wondering if there was any way to trick the index.php page into displaying like an album.php page. And, assuming that is possible, how I would go about telling it which album it is supposed to be displaying?

I'm working on an art portfolio site, and it's never going to have more than a few albums, so I'd just as soon skip the page that lists the albums and get right into the albums themselves...

Any help would be much appreciated...

Thanks,
Ben B

Comments

  • The code which prints out the image thumbs is lines 21-29 of album.php in the default theme.

    You could try replacing lines 20-36 in index.php with the above.
  • That gives a <i> Fatal error: Call to a member function on a non-object...</i>

    However, putting the thumbnail getting code inside a while statement that calls the albums seems to work:

    ```

    <?php while (next_album()): ?>

    <?php while (next_image()): ?>



    <?php endwhile; ?>

    <?php printDefaultSizedImage(next_image()); ?>

    <?php endwhile; ?>

    `

    Of course, that'll probably show thumbnails from all albums. Now if only I could figure out how to make it only show the first album (or better yet how to tell it to show thumbs from an arbitrary album) and how to make the full sized image link to the correct image page (probably the image page for the second image in the album), I could then move on to making it all look pretty...
  • (I have a site up that I am testing this out on at http://benhard.com/zenphoto )
Sign In or Register to comment.