[Zope] DTML Document ids

Alexis Roda arv at si.urv.es
Thu Oct 16 07:14:29 EDT 2003


Giuseppe Bonelli wrote:
> 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>

Try with other prefix in order to avoid confusion:

<dtml-var standard_html_header>
<dtml-in expr="objectItems('DTML Document')" prefix="doc">
<dtml-var expr="doc_item.id"><br/>
<dtml-var id><br/>
</dtml-in>
<dtml-var standard_html_footer>



HTH
-- 
                                   ////
                                  (@ @)
---------------------------oOO----(_)----OOo------------------------
         Los pecados de los tres mundos desapareceran conmigo.
Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain)
--------------------------------------------------------------------




More information about the Zope mailing list