Re: Limiting the section loop
| From: | Andrei Zmievski | Date: | Fri, 22 Jun 2001 14:33:38 +0000 |
| Subject: | Re: Limiting the section loop | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-948@lists.php.net to get a copy of this message | ||
On Fri, 22 Jun 2001, Ivo Jansch wrote:
> Hi Monte,
>
> Monte Ohrt wrote:
>
> > not currently. that's an idea though. thoughts?
>
> Isn't this possible?:
>
> {section name=foo loop=5}
> <br>{$people[foo.index+5].name}
> {/section}
>
> That loops from 5 to 10, but I'm not sure if the +5 will work. (no time
> to test it)
No, mathematical expressions are not permitted inside brackets (or
anywhere else for that reason, except for {math} custom function.
-Andrei
* The great thing about standards is that there are so many to choose from. *