[Zope] Dynamic ordering of DTML-IN?

Adam Karpierz karpierz@itl.pl
Tue, 23 Jan 2001 17:52:26 +0100


> You can use something like:
>
> <dtml-if "orderby=='firstname'">
> <dtml-in "sql_search(search='foo')" sort=firstname>
> <dtml-elif "orderby=='lastname'">
> <dtml-in "sql_search(search='foo')" sort=lastname>
> </dtml-if>

For Zope.2.3.0+ you can use:

<dtml-in "sql_search(search='foo')" sort_expr="orderby">

--
Adam Karpierz
karpierz@alpha.pl