Re: [SMARTY] Retardation : looping thru photo gallery
| From: | Manfred 'dwerg' Stienstra | Date: | Thu, 24 Oct 2002 20:12:39 +0000 |
| Subject: | Re: [SMARTY] Retardation : looping thru photo gallery | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6235@lists.php.net to get a copy of this message | ||
On Thursday 24 October 2002 21:58, Tim Burden wrote:
> Yeah I tried that. On a loop over six pics,
> {$smarty.section.pics.total-1} //no spaces
> Fatal error: Smarty plugin error: [in Photo_Gallery line 5]: unknown tag -
> '$smarty.section.pics.total-1'
>
> Whereas
> {$smarty.section.pics.total -1} //has spaces
> gives 6, which is still one too high.
{math equation="x-1" x=$smarty.section.pics.total}
Manfred