[Zope] Difference between "id" and id ?
flight@mathi.uni-heidelberg.de
flight@mathi.uni-heidelberg.de
Tue, 2 Nov 1999 15:54:45 +0100
Is it okay that
<dtml-var id> and <dtml-var "id">
have different results ? I'm trying the following code in a DTML method inside
a ZClass, but the dtml-if fails since <dtml-var "id"> is empty.
<dtml-var id> OTOH shows the expected result, the id of the Seite object:
<table>
<dtml-let selfid=id>
<dtml-in "PARENTS[1].objectValues('Seite')">
<tr><td><dtml-if "id==selfid"><dtml-var "PARENTS[-2].Images.littlearrow"></dtml-if></td><td><a href="../<dtml-var id>"><dtml-var font2><dtml-var title_or_id></font></a></td></tr>
</dtml-in>
</dtml-let>
</table>
This is with the most recent CVS Zope, FWIW.
I'd like to use this method to render a navigation sidebar that lists
the "sister" Seite objects of this ZClass object.
Gregor