[Zope] side sorting

Spinwing spinwing@inwind.it
Sat, 24 Feb 2001 11:47:17 +0100


Hello Oliver

it worked perfectly for me but consider the following:

- I have set an atribute different from the "sort" name, just to be sure to
avoid conflicts, so I named it "sort_order"

- my dtml statement looked like:
  <dtml-in expr="objectValues('Folder')" sort=sort_oder>

this way it works.

Hope to be of help
Rgds
Stefano

Message: 44
Date: Fri, 23 Feb 2001 17:22:27 +0100
From: Oliver Vecernik <vecernik@aon.at>
Organization: VECERNIK Datenerfassungssysteme
To: "zope@zope.org" <zope@zope.org>
Subject: [Zope] side sorting

Hi,

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>

I set a property named 'sort' to every folder, but my code doesn't work.
How can I achieve arbitrary sorting for the menu?

Oliver