[Zope] Re: Propertysheets in DTML
Lars Heber
Lars.Heber@t-systems.com
Thu, 25 Apr 2002 18:57:05 +0200
That's the way I'm doing it:
Within a ZClass instance:
<dtml-in "propertysheets.nameOfPropertySheet.propertyMap())" mapping>
<dtml-if sequence-start><table></dtml-if>
<tr>
<td><dtml-var id></td>
<td><dtml-var "_.getitem(id)"></td>
</tr>
<dtml-if sequence-end></table></dtml-if>
</dtml-in>
Maybe not the neatest way, but it works...
(BTW: Improvement of the above code is welcome!)
see http://www.zope.org/Documentation/ZopeBook/AppendixB.stx
for more information -> keyword: propertyMap.
CU
--
Lars Heber, mailto:Lars.Heber@t-systems.com
T-Systems, debis Systemhaus GEI GmbH, Geschaeftsstelle Sachsen