Get and Display Parent Album Title

I have a feeling that I'm missing something obvious, but I can't figure out for the life of me how to get ZenPhoto to display a Parent Album title.

I don't need the full path like the breadcrumb. Just the title of the parent album one level above the current subalbum.

Is there a function for this?

Comments

  • acrylian Administrator, Developer
    No direct one. This has to be done via the album class/object. Try this:
    `
    <?php $parentalbum = $_zp_current_album->getParent();
    if(!empty($parentalbum)) {
    echo "parent album title: ".$parentalbum->getTitle();
    } ?>
    `
  • Awesome.

    Thanks a lot. I was going crazy with that one.
Sign In or Register to comment.