Re: [PHPTAL] php if else syntax in phptal

2008-10-13 Thread Kornel Lesiński
On 12-10-2008 at 11:21:18 Iván -DrSlump- Montes [EMAIL PROTECTED] wrote: The problem is probably that PHPTAL parser doesn't know how to correctly process the PHP ternary operator. No, it does. table tal:attributes=class php: record/works_page ? 'llista_cancons' : 'llista_canconsindiv'

Re: [PHPTAL] Re: assigned fields

2008-10-13 Thread Kornel Lesiński
On 10-10-2008 at 19:16:36 admi [EMAIL PROTECTED] wrote: If you may tell me where in PHPTAL (in which file) it is read, so I could put some of my code there and unset it automatically while reading :) It's in Context.php → __get() -- regards, Kornel

[PHPTAL] How to disable autoquote ?

2008-10-13 Thread Guillaume Lecanu
Hi, I want to write a dynamic JS content into the script/scriptbalise. A simple : alert(Hello World) But the problem is PHPTAL replace all quotes (simple or double quote) by HTML entities. How can I do ? Thanks ___ PHPTAL mailing list

Re: [PHPTAL] How to disable autoquote ?

2008-10-13 Thread Iván -DrSlump- Montes
prefix the content with the 'structure' keyword, it will use the value verbatin. script tal:content=structure myJsCode/script ciao, /imv On Mon, Oct 13, 2008 at 10:13 PM, Guillaume Lecanu [EMAIL PROTECTED] wrote: Hi, I want to write a dynamic JS content into the script/scriptbalise. A

Re: [PHPTAL] How to disable autoquote ?

2008-10-13 Thread Guillaume Lecanu
Le lundi 13 octobre 2008 à 22:22 +0200, Iván -DrSlump- Montes a écrit : prefix the content with the 'structure' keyword, it will use the value verbatin. script tal:content=structure myJsCode/script This working fine, thanks you for this very quick reply ! ciao, /imv On Mon, Oct 13,

[PHPTAL] Re: assigned fields

2008-10-13 Thread admi
Kornel Lesiński [EMAIL PROTECTED] writes: On 10-10-2008 at 19:16:36 admi [EMAIL PROTECTED] wrote: If you may tell me where in PHPTAL (in which file) it is read, so I could put some of my code there and unset it automatically while reading :) It's in Context.php → __get()

Re: [PHPTAL] How to disable autoquote ?

2008-10-13 Thread Levi Stanley
script language=javascript ![CDATA[ javascript blah ]] /script Guillaume Lecanu wrote: Hi, I want to write a dynamic JS content into the script/scriptbalise. A simple : alert(Hello World) But the problem is PHPTAL replace all quotes (simple or double quote) by HTML entities. How can I