zenphoto forums » General Zenphoto Discussion

Getting a list of all albums (including sub-albums)

(3 posts)
  • Started 10 months ago by egrigson
  • Latest reply from egrigson
  1. egrigson

    Member
    Joined: Jun '12
    Posts: 18

    I'm trying to create an index page which lists all the albums in my entire gallery, which I'd like to display on a Zenpage. I'm using the following code in a codeblock;
    <?php while (Next_Album($true)): ?>
    <h3><?php echo getAlbumTitle(); ?></h3>
    <?php endwhile; ?>

    This works in that a list of album names is generated, but it only includes the first page of albums as shown on my index.php page. How can I get a list of all albums without pagination?

    Posted 10 months ago #
  2. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,355

    The print_album_menu plugin is the easiest.

    Don't forget to read the Forum rules and usage resources
    Posted 10 months ago #
  3. egrigson

    Member
    Joined: Jun '12
    Posts: 18

    That looks like a great starting point, thanks for the swift response!

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.