[Zope] ZPT newbie question

Mark McEahern marklists@mceahern.com
Thu, 8 Aug 2002 10:50:35 -0500


> How do I do the following in ZPT please?
> 
> <dtml-if "REQUEST.has_key('nofile')">
> Please enter a file name by browsing your system
> </dtml-if>

Try something like this:

  <span tal:omit-tag="" tal:condition="REQUEST/has_key('nofile')">
  Please enter a filename by browsing your system.
  </span>

The condition might need to be "python:REQUEST.has_key('nofile')".

// mark
-