Link to first image from album menu

Hullo! My gallery's customized theme sends the user straight to the image.php of the first image of the first album. On the image.php, I've included the printAlbumMenu plugin, but each of the album links go to their respective album.php. What would be the best way to link to each of the albums' respective first images? I've read the forum thread on skipping album.php to image.php from the index page, but I'm unsure of how to go about it with this particular plugin. Any help would be greatly appreciated!

Comments

  • prinrAlbumMenu() does not do what you wish. You would need to make a copy of that plugin and modify it for your purposes. Change where it puts out the album link to put out a link to the first image. You can use `getFirstImageURL()` to give you the URL for the first image.
  • The gallery starts with the first image of Album A. When using `getFirstImageURL()` in the plugin, the link to Album B links to the first image of the current album, Album A, instead, when it should link to the first image of Album B. Here's the change I made in print_album_menu.php:

    before:
    `
    $link = "name))."' title='".html_encode($topalbum->getTitle())."'>".html_encode($topalbum->getTitle())."".$count;
    `
    after:
    `
    $link = "getTitle())."'>".html_encode($topalbum->getTitle())."".$count;
    `
    Thank you for the fast response, by the way! These forums are pretty fantastic.
  • acrylian Administrator, Developer
    Just to note, I have this already as an option on my (long) list.
  • I'm sorry, acrylian, I'm don't understand where this is an option. Could you clarify?
  • acrylian Administrator, Developer
    Sorry, I probably wrote missunderstandable. I have added it to my to do list to become a future option. It is not yet there and it will not be in the coming 1.2.6 release.
Sign In or Register to comment.