Hi, sorry to trouble you.
Situation:
Album
|
|
Subalbum_1 | Subalbum_2 ---Pictures
|
|
Pictures
When I use printLatestUpdatedAlbums with showtitle it return "Subalbum1" and "Subalbum2" as titles , I have change $tempalbum->getTitle() to $tempalbum->name
and got "Album/Subalbum_1" and "Album/Subalbum_2" as title.
It's possible to get only "Album" without "Subalbum_1" in title name ?
You need to understand the difference between the title and the unique name/folder.
Anyway, yes, $parentalbum = $tempalbum->getParent(); $parentalbumtitle = $parentalbum->name
http://www.zenphoto.org/documentation/classes/Album.html#methodgetParent