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'  ">

In php: code / is a mathematical operator. You need to make it record.works_page (if record is an object) or record['works_page'] if record is an array.

regards, Kornel

PHPTAL mailing list

Reply via email to