On 05/10/2010 18:20, Mark Phillips wrote: > I have a table and I am putting data into the cells using tal. I want to > bold the data under a certain condition. I tried this, but it didn't work: > > <td tal:content="string:${player/name}"><b > tal:condition="python:str(player['name']) == 'Team'">name</b></td> > > The data (player/name) appears correctly, but when player/name='Team', > the text is not bold. After some reading, I believe what is happening is > that the tal:content tag is replacing everything between the <td> and > the </td> tags. Is this correct? I tried this, and no bold either: > > <td tal:content="string:${player/GP}"><b>GP</b></td>
<td><b tal:content="player/GP" tal:omit-tag="python:str(player['name']) != 'Team'">GP</b></td> cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk _______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )