[Zope] sidebar sorting
Dieter Maurer
dieter@handshake.de
Sat, 24 Feb 2001 23:08:59 +0100 (CET)
Oliver Vecernik writes:
> I have following DTML method for a sidebar construction:
> <ul>
> <dtml-in expr="objectValues('Folder')" sort="_.[sort]">
> <li><a class="sidemenu" href="&dtml-absolute_url;"><dtml-var
> title_or_id></a><br></li>
> </dtml-in>
> </ul>
"sort" interprets its value as a list attribute names separated
by ','.
In your example, it would use the attribute with the literal name "_.[sort]".
But you want "_.[sort]" evaluated and use the result as sort
specification. You can do that with "sort_expr" (rather than "sort").
Dieter