[Zope] The name of the current DTML-document

Chris McDonough chrism@zope.com
Thu, 20 Dec 2001 20:39:38 -0500


This is useful as well:

http://www.zopelabs.com/cookbook/1001104105

Jim Washington wrote:
> 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...
>>
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )


-- 
Chris McDonough                    Zope Corporation
http://www.zope.org             http://www.zope.com
"Killing hundreds of birds with thousands of stones"