[Zope] [Fwd: TALs Expressions]

Chris Withers chris at simplistix.co.uk
Mon Jan 31 05:26:32 EST 2005


Brian Brinegar wrote:

> <h2 tal:condition="template/title">Has a Title</h2>
> <h2 tal:condition="template/id">Has an Id</h2>
> <h2 tal:condition="template/title | template/id">Has a Title or Id</h2>

I believe what you really may be looking for is:
<h2 tal:content="template/title_or_id"/>

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list