[PHPTAL] tal:condition question

2011-09-23 Thread Teis Lindemark
Hi, I have a list in my application where the first column should be one icon if the id of the offer is in an array or another icon otherwise. The array that have some icons looks something like this: $tmp[id] = 1 or 0. If id is 1, I should have one icon and another if 0. I added the array

Re: [PHPTAL] tal:condition question

2011-09-23 Thread Kornel Lesiński
On Fri, 23 Sep 2011 19:16:11 +0100, Teis Lindemark m...@teilin.net wrote: I have a list in my application where the first column should be one icon if the id of the offer is in an array or another icon otherwise. The array that have some icons looks something like this: $tmp[id] = 1 or 0.

[PHPTAL] Tal:condition question

2011-07-13 Thread Teis Lindemark
Hi, I am sitting with a page where I have a menu where the design is defined as a macro. In this menu, I want to have one of the elements that is Login or Logout depends on the user is logged in or logged out. So I was thinking that tal:condition could do this for me. I have a function

Re: [PHPTAL] Tal:condition question

2011-07-13 Thread sean
Thank you for contacting Canterris. I???m currently out of the office until July 25. Please feel free to contact Will Freemen (w...@canterris.com) or Canterris Technical Support (supp...@canterris.com) for any support requests. ___ PHPTAL mailing

Re: Re: [PHPTAL] Tal:condition question

2011-07-13 Thread sean
Thank you for contacting Canterris. I???m currently out of the office until July 25. Please feel free to contact Will Freemen (w...@canterris.com) or Canterris Technical Support (supp...@canterris.com) for any support requests. ___ PHPTAL mailing

SV: [PHPTAL] Tal:condition question

2011-07-13 Thread Teis Lindemark
Hi, Thanks for your quick answer. Teis Fra: phptal-boun...@lists.motion-twin.com [mailto:phptal-boun...@lists.motion-twin.com] På vegne av Marco Pivetta Sendt: 13. juli 2011 09:25 Til: Template Attribute Language for PHP Emne: Re: [PHPTAL] Tal:condition question Supposing

Re: SV: [PHPTAL] Tal:condition question

2011-07-13 Thread sean
Thank you for contacting Canterris. I???m currently out of the office until July 25. Please feel free to contact Will Freemen (w...@canterris.com) or Canterris Technical Support (supp...@canterris.com) for any support requests. ___ PHPTAL mailing