Re: [PHPTAL] How to disable autoquote ?

2008-10-13 Thread Levi Stanley
Guillaume Lecanu wrote: > Hi, > > I want to write a dynamic JS content into the balise. > 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 > > > !DSPAM:1,48f

[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 → _

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. > > This working fine, thanks you for this very quick reply ! > > ciao, > /imv > > > On Mon, Oct 13, 2008 at 10:13 PM, Guillaume Lecanu

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. 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 balise. > A simple : alert("Hello World") > > But the problem is PH

[PHPTAL] How to disable autoquote ?

2008-10-13 Thread Guillaume Lecanu
Hi, I want to write a dynamic JS content into the balise. 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 PHPTAL@lists.motion-twin.co

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. In php: code / is a mathematical operator. You need to make it record.works_page (if re

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 __