[Zope] The name of the current DTML-document

Jim Washington jwashin@vt.edu
Thu, 20 Dec 2001 20:19:55 -0500


Hi, Bruce

Maybe this is what you want:

<dtml-if "document_id in book.objectIds()">
<dtml-var "book[document_id]">
</dtml-if>

-- Jim Washington

Bruce Eckel wrote:

>I take it back. The <dtml-if > doesn't work. It works only if the
>file exists under 'book'.
>
><dtml-with book>
>  <dtml-if "_[document_id]">
>  <dtml-var "_[document_id]">
>  </dtml-if>
></dtml-with>
>
>So I'm still trying to figure out how to do the conditional...
>