Re: [PHPTAL] optional attribute, based on another condition

2010-10-02 Thread romtek
2010/9/30 Ionuţ Matei > Thanks! > > I didn't thought that "?:" can be used in "php:". > If you haven't studied PHPTAL's manual thoroughly, I recommend that you do. E.g., see http://phptal.org/manual/en/#tal-attributes. ___ PHPTAL mailing list PHPTAL@li

Re: [PHPTAL] optional attribute, based on another condition

2010-09-30 Thread Ionuţ Matei
Thanks! I didn't thought that "?:" can be used in "php:". 2010/9/30 Kornel Lesiński : > On 30 Sep 2010, at 10:01, Ionut Matei wrote: > >> Hello, >> >> I want the 'href' attribute to be skipped if $item['route'] is empty: >> >> >> >> the manual says attributes can be skipped with " | nothing", bu

Re: [PHPTAL] optional attribute, based on another condition

2010-09-30 Thread Kornel Lesiński
On 30 Sep 2010, at 10:01, Ionut Matei wrote: > Hello, > > I want the 'href' attribute to be skipped if $item['route'] is empty: > > > > the manual says attributes can be skipped with " | nothing", but this > is based on the attribute's value. With php: modifier NULL also works: tal:attribut

[PHPTAL] optional attribute, based on another condition

2010-09-30 Thread Ionut Matei
Hello, I want the 'href' attribute to be skipped if $item['route'] is empty: the manual says attributes can be skipped with " | nothing", but this is based on the attribute's value. Thanks! ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http: