Member
Member
usartdude   2012-12-21, 04:29
#1

I want to make a link for a subalbum's parent album. I think i need some combination of getParent() and html_encode(getAlbumLinkURL())

This is probably simple, but I don't know how to do it.

thanks if you can help

Administrator
Administrator
fretzl   2012-12-21, 06:19
#2

linktext

Administrator
Administrator
acrylian   2012-12-21, 10:29
#3

Not correct actually (even wrong single quotes..;-)).. getParent() returns an object if there is a parent. So in case there is you could use $_zp_current_album->getParent()->getAlbumLink(). Better is a check like this:
`
$parent = $_zp_current_album->getParent();
if(is_object($parent)) {
?>
linktext

Administrator
Administrator
fretzl   2012-12-21, 10:47
#4

:[ embarrassment...

Administrator
Administrator
acrylian   2012-12-21, 10:55
#5

Sorry...:-)

Member
Member
usartdude   2012-12-21, 18:53
#6

Thanks for the help, it worked perfectly! I'm going to send a small donation to Zenphoto in your honor.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.