Member
Member
PashaXIII   2009-02-09, 10:31
#1

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 ?

Administrator
Administrator
acrylian   2009-02-09, 11:29
#2

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

Member
Member
PashaXIII   2009-02-09, 12:04
#3

Many thanks, works fine!

You can thought what this is joke but I really read docs and try to insert getParent() I even saw similar code, as you gave, here in forum... I must be more attentive

Once more thanks!

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