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. 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, Farhan Check my site for the debug info |
|
Posts: 27300
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