[ZPT] Can anyone beat this?

Chris Withers chrisw@nipltd.com
Mon, 10 Sep 2001 16:30:35 +0100


Ron Bickers wrote:
> 
> I think this will cover the bases:
> 
>   <td tal:content="python:path('item/title') or default">&nbsp;</td>

This is actually probably as good as it gets...

> However, I hate using 'default' like this because then I can't put a sample
> title there.

Well, you can, just do it as a dummy row:

<table>
<tr><td tal:content="python:path('item/title') or default">&nbsp;</td><tr>
<tr tal:replace="nothing"><td>my sample content</td></tr>
</table>
cheersm

Chris