Hi all, When presenting a site structure in a menu, the order of elements in a Folder or other folderish objects is (most likely) of some semantic relevance if this is to be done dynamically. In the management interface of folderish items, there is little possibility to rearrange the order of the elements, except for cutting and pasting, as new elements will be appended. While the management interface presents elements in alphabetical order, this will have the desired effect of changing the order when requesting the list of elements via objectItems(). This is, however, a rather clumsy approach. Is there some easy solution to remain flexible with this order, or will it be something like subclassing the relevant objects and add a property for the order by which the requested list can be sorted? Cheers, Ben -- Ben Peter - Feldstrasse 8 - 35091 Coelbe Ben.Peter@t-online.de ph: (+49) 6421 983520
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 17 April 2001 04:54, Ben Peter wrote:
Hi all,
When presenting a site structure in a menu, the order of elements in a Folder or other folderish objects is (most likely) of some semantic relevance if this is to be done dynamically.
In the management interface of folderish items, there is little possibility to rearrange the order of the elements, except for cutting and pasting, as new elements will be appended. While the management interface presents elements in alphabetical order, this will have the desired effect of changing the order when requesting the list of elements via objectItems().
This is, however, a rather clumsy approach. Is there some easy solution to remain flexible with this order, or will it be something like subclassing the relevant objects and add a property for the order by which the requested list can be sorted?
Cheers, Ben
Hi, I had similar problems. I'm now sorting by ID. That's not quite the best solution but it works. - -- Uwe C. Schröder - -- Uwe C. Schröder ConTrada Consultants Lindenstrasse 15 Tel/Fax: +49 8294 80070 D-86477 Adelsried Mobil: +49 172 8532352 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE63A/fTJbO78VG0aIRAqUAAJ9RACgIrBaa3BcTIWpPeNzjhlvkXgCfUO+8 ZgukUJEwSizzTU4OOOD7yGI= =RupA -----END PGP SIGNATURE-----
participants (2)
-
Ben.Peter@t-online.de -
Uwe C. Schroeder