[ZPT] More...
Chris Withers
chrisw@nipltd.com
Fri, 14 Sep 2001 09:40:40 +0100
Chris Withers wrote:
>
> Evan Simpson wrote:
> >
> > <td tal:content="python:path('item/title') or default">
> > <span tal:replace="structure string: ">My Title</span>
> > </td>
Okay, so now what if title my or may not exist?
The best I've got is:
<td tal:content="python:path('item/title | default') or default">
<span tal:replace="structure string: ">My Title</span>
</td>
...which is pretty yucky ;-)
cheers,
Chris