Re: [PHPTAL] Using tal:repeat as condition

2008-09-09 Thread Rafał Miłecki
Using dots works perfect, thanks. Maybe it would be a good idea to add such a example to manual in "7.4. php:" section? There already are many examples, so putting another one using tal:repeat makes sense for me. -- Rafał Miłecki ___ PHPTAL mailing lis

Re: [PHPTAL] Using tal:repeat as condition

2008-09-08 Thread Kornel Lesiński
On 04-09-2008 at 10:12:37 Christoph Frick <[EMAIL PROTECTED]> wrote: But it causes error "Unable to find path number in current scope". Is this possible to make such a condition? I know I could generate in PHP something like item/isThird but I wish to keep my PHP code clean from such hacks. y

Re: [PHPTAL] Using tal:repeat as condition

2008-09-04 Thread tarjei
Hi, Rafał Miłecki wrote: > I wish to add some text after third (and later after every third) > element in my list. > > > Place for content > --BREAK-- > > > > Place for content > --BREAK-- Try changing repeat/item/number to repeat.item.number or repeat().item().number() Regard

Re: [PHPTAL] Using tal:repeat as condition

2008-09-04 Thread Christoph Frick
On Thu, Sep 04, 2008 at 10:54:29AM +0200, Rafa?? Mi??ecki wrote: > I wish to add some text after third (and later after every third) > element in my list. > > > Place for content > --BREAK-- > > > > Place for content > --BREAK-- > > > But it causes error "Unable to find path