[Zope] sorting in dtml-in

Alexis Roda arv@si.urv.es
Fri, 16 May 2003 16:43:10 +0200


Marie Robichon wrote:
> 
> I have a table generated from a database that I want to be able to sort by
> different criteria by clicking on the column headers and reloading the
> page, however I have tried various syntaxes for the <dtml-in
> selectAllProjects sort=....> line
[...]

sort will sort the list by a given (fixed) attribute, you should use
sort_expr instead:

<dtml-in selectAllProjects sort_expr="sortby">
   <tr>....


HTH
-- 
                                  ////
                                 (@ @)
---------------------------oOO----(_)----OOo------------------------
        Los pecados de los tres mundos desapareceran conmigo.
Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain)
--------------------------------------------------------------------