[Zope] DTML Document ids

Dragos Chirila d.chirila at bucarest.finsiel.ro
Thu Oct 16 08:08:15 EDT 2003


Hi

*<dtml-var "sequence_item.id">

When you use " " in  dtml-var that is an expression. To access dtml
sequence-item you must write it like this:

<dtml-var "_['sequence-item'].id">

Dragos


----- Original Message -----
From: "Giuseppe Bonelli" <giuseppe.bonelli at tiscali.it>
To: <zope at zope.org>
Sent: Thursday, October 16, 2003 1:04 PM
Subject: [Zope] DTML Document ids


> Can someone explain to me why in the following code the line starting
> with * outputs a null string and the line starting with ** outputs the
> correct id of the DTMLDocument object ?
>
> <dtml-var standard_html_header>
> <dtml-in expr="objectItems('DTML Document')" prefix="sequence">
> *<dtml-var "sequence_item.id"><br/>
> **<dtml-var id><br/>
> </dtml-in>
> <dtml-var standard_html_footer>
>
> TIA
>
> __peppo
>
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>





More information about the Zope mailing list