Number of pictures in subgalleries (Gallery module)
Posted: Thu Apr 21, 2011 7:47 am
Hi all, I'd like to go through subgalleries of gallery and I'd like to get number of images in every subgallery. Is there any simple way to do? Here is my template code:
I know, here is variable $numimages, but it's not available inside the loop. How to make it available?
Thank you
Code: Select all
<div class="gallery">
<ul>
{foreach from=$images item=subgallery}
<li>
<a href="{$subgallery->file}" title="{$subgallery->titlename}">
{$subgallery->titlename} (NUMBER_OF_IMAGES_IN_SUBGALLERY?)
</a>
</li>
{/foreach}
</ul>
</div>
Thank you
