Re: [PHPTAL] Variable access in tal:repeat

2009-12-10 Thread Kornel Lesiński
On 10-12-2009 at 14:32:58 Bas wrote: If I create the following construct in a template PHPTal will throw an error, saying that the variable item cannot be found: tal:condition is evaluated before tal:repeat. In XML order of attributes in the source code doesn't matter, so TAL has to hav

Re: [PHPTAL] Variable access in tal:repeat

2009-12-10 Thread Kornel Lesiński
On 10-12-2009 at 14:37:46 Fabian Deutsch wrote: Am Donnerstag, den 10.12.2009, 14:32 + schrieb Bas: If I create the following construct in a template PHPTal will throw an error, saying that the variable item cannot be found: did you try: That wouldn't work. repeat is for metadata a

Re: [PHPTAL] Variable access in tal:repeat

2009-12-10 Thread Fabian Deutsch
Am Donnerstag, den 10.12.2009, 14:32 + schrieb Bas: > If I create the following construct in a template PHPTal will throw an > error, > saying that the variable item cannot be found: > > tal:condition="not:item/someBooleanVar"> > did you try: -fabian > The following, however, works ju