Hello, I'm trying to make the title of albums display the number of photos within the album. I'm hoping there's a $child property for this, i.e. $child.count or something. So, for example, in my template I would have:
{g->text text="%s<br />(%s photos)" arg1=$child.title|markup arg2=$child.count}
Of course, $child.count doesn't exist, so I was wondering if there's any documentation that lists out all the $child properties we can use.
Thanks!
Posts: 8601
http://codex.gallery2.org/index.php/Gallery2:Tpl_Reference
and
http://gallery.menalto.com/apidoc/GalleryCore/Classes/GalleryTheme.html#methodloadCommonTemplateData
Posts: 24
Awesome, thanks! child.childCount is the property I'm looking for.
BTW, I did come accross that first link during my search, but couldn't find the information I needed on that page. The second link, however, has the answer.
Posts: 8601
The tip in the first link is the third bullet in the first section: "To see all variables available for a page...."
Posts: 24
That's very helpful. Thanks again!