[PHPTAL] tal:condition

2009-08-31 Thread GRolf
the docs say about "tal:condition" that the block will only be shown if the expression evaluates to true... but I don't find the info if I couldn't easily compare a var to a string? should I always revert to php: stringname == 'value' ? Something like Your username is unknown _

Re: [PHPTAL] tal:condition

2009-08-31 Thread Ionut Matei
This should do it: Your username is unknown 2009/8/31 GRolf > the docs say about "tal:condition" that the block will only be shown > if the expression evaluates to true... > > but I don't find the info if I couldn't easily compare a var to a > string? > > should I always revert to php: s

Re: [PHPTAL] tal:condition

2009-08-31 Thread Ionut Matei
2009/8/31 Ionut Matei > This should do it: > > > Your username is unknown > > Sorry, I was wrong, I should have added "php:" http://phptal.org/manual/en/split/conditional.html -- it says: "*These operators can be used only in php: expressions. *" Your username is unknown _

[PHPTAL] nested tal:fill-slots ?

2009-08-31 Thread GRolf
wondering about yet another thing is it somehow possible to nest a "define-slot" in a "fill-slot" ? I have ...header etc... ...footer etc... and ...main content goes here... ... would like to define a new slot here ... is that possible? ___

Re: [PHPTAL] tal:condition

2009-08-31 Thread Kornel Lesiński
On 31.08.2009, at 15:22, GRolf wrote: the docs say about "tal:condition" that the block will only be shown if the expression evaluates to true... but I don't find the info if I couldn't easily compare a var to a string? should I always revert to php: stringname == 'value' ? Yes. That's fin

Re: [PHPTAL] nested tal:fill-slots ?

2009-08-31 Thread Kornel Lesiński
On 31.08.2009, at 17:06, GRolf wrote: wondering about yet another thing is it somehow possible to nest a "define-slot" in a "fill-slot" ? You can fill a slot by calling macros which have their own slots: -- regards, Kornel ___