[Zope] sorting a table

Schmidt, Allen J. aschmidt@nv.cc.va.us
Tue, 16 Jul 2002 07:01:38 -0400


I dug into the ZMI code and found out how it was doing this and make it work
for me... Take a look at the result. If its what you are looking for, I can
send you the page to take apart and see what makes it tick. It's all DTML if
that is what you are looking for. 

http://fredericksburg.com/Wheels/vehicleList

-Allen

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Stephan Goeldi
Sent: Tuesday, July 16, 2002 6:44 AM
To: zope@zope.org
Subject: [Zope] sorting a table


I am looking for a sorting mechanism similar to that in the ZMI, where I can
click on the header "ID" to let the objects be sorted by the id. This I
would like to implement in a HTML table, which is laid out like this:

id        title        date


I would like to make the headers appear as links, which reloads the current
url with something like this:

http://localhost:8080/current_page?sorttype=title

How do I have to format the dtml-in tag to use this url for sorting?

I already tried this:

dtml-in blabla .. sort=&dtml-sorttype;

without success.



_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )