[Zope] DTML to HTML

Chris Withers chris at simplistix.co.uk
Wed Jun 2 03:52:35 EDT 2004


Jason C. Leach wrote:

> hi All:
> 
> What does this translate to in ZPT:          <dtml-if name="user_can_edit">
> Perhaps here/user_can_edit or python:here.user_can_edit?  Both don't 
> seem to work.
> 

<some_html_element tal:condition="here/user_can_edit">
Only show if user can edit.
</some_html_element>

...but read what Paul said too...

Chris

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




More information about the Zope mailing list