I'm Lost .. cannot access "Peer" properties

farhaneee

Joined: 2009-08-04
Posts: 36
Posted: Tue, 2010-04-20 16:53

Hi Every one,

I wanted to show the "photo description" of peers items on the Photo page. i.e photo.tpl.
I load the peers by doing a callback to core.LoadPeers which loads data into block.core.LoadPeers

The problem is

1) For each $block.core.LoadPeer.peers I can access width,height and id, but I cannot access title and description, It says invalid index "title". I have turned debug mode on, still I don't see any variables from $block.core.LoadPeers in the list so its very hard to guess which properties are available and which not.

2) I was also trying to load the album highlight thumbnail in the photo page i.e photo.tpl. I see the $theme.parent item but the thumbnail is not loaded there, where do I change the code so the thumbnail of the parent is also loaded

I'm new to programming and learned a lot by trial and error working on Gallery,
Please do help me out,

Farhan

Check my site for the debug info
www.farhan-tauheed.com

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2010-04-20 21:53

See if $VariableName|print_r yields info. in your for each loop.

http://php.net/manual/en/function.print-r.php

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team