[Zope] Need some newbie tal help
Andrew Milton
akm at theinternet.com.au
Tue Oct 5 13:29:45 EDT 2010
+-------[ Andrew Milton ]----------------------
| +-------[ Mark Phillips ]----------------------
| | 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>
|
| Try using css
|
| <td><div tal:replace="string:${player/name}" tal:attributes="class
| python:test(player['name'] == 'Team', 'someboldcss', '')" /></td>
s/tal:replace/tal:content/
--
Andrew Milton
akm at theinternet.com.au
More information about the Zope
mailing list