In the nighty/coming 1.3.2 this usage is incorporated into the object model to be more consequent (the usage of the above is actually the same except the first line): ` $parents = $pageobj->getParents(); if(is_array($parents)) { // to be sure there are parents! $directparent = $parents[0] // direct parent page titlelink $parentpage = new ZenpagePage($directparent); echo $parentpage->getTitle(); } `
Acrylian, please be assured I do read and 'try' to understand the documentation. While I am learning my knowledge of php is still lacking, especially when I get confused between classes and how those classes are activated within certain functions.
Most of my reaches out for help are due to my lack of being able to work it out for myself, but I do try, for quite some time too
Comments
Edit:
Actually, completely forgot about this function:
printParentPagesBreadcrumb()
That does what you need.
Cheers
GW
Cheers
GW
I'll see if I can come up with something that does that for yah.
http://www.zenphoto.org/documentation/elementindex.html (top right on the main doc page) you can search all functions via the browser search.
So 1.3.1.2 has:
http://www.zenphoto.org/documentation/plugins/zenpage/_zp-extensions---zenpage---zenpage-functions.php.html#functiongetParentPages
In the nighty/coming 1.3.2 this usage is incorporated into the object model to be more consequent (the usage of the above is actually the same except the first line):
`
$parents = $pageobj->getParents();
if(is_array($parents)) { // to be sure there are parents!
$directparent = $parents[0] // direct parent page titlelink
$parentpage = new ZenpagePage($directparent);
echo $parentpage->getTitle();
}
`
Nice to know I was on the right path though
Most of my reaches out for help are due to my lack of being able to work it out for myself, but I do try, for quite some time too
Thanks
GW