Member
Member
smgpugfaw   2008-08-29, 18:09
#1
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?
Administrator
Administrator
acrylian   2008-08-29, 18:29
#2
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();
} ?>
`
Member
Member
smgpugfaw   2008-08-29, 18:47
#3
Awesome.

Thanks a lot. I was going crazy with that one.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.