[Zope] Different Sorting Methods using DTML-IN

Dieter Maurer dieter@handshake.de
Fri, 9 Aug 2002 22:39:40 +0200


Alexander M Hottenstein writes:
 > I am attempting to use several different sorting variables on a dtml-in
 > of one type of object. Depending on several booleens that determine
 > which sorting methods will be used. I know that I cannot use a dtml-if
 > to determine which dtml-in to use, but do not want to have several
 > different blocks of code for each sort that I use.
Look at "sort_expr" (a "dtml-in" attribute).

As an example, look at how the ZMI (Zope Management Interface) does
this (--> OFS/dtml/main.dtml).


Dieter