Re: [Zope] Ordered Folders
The ZClass/Folder can have a simple lines property, which serves as a sheet where the order of objects can be edited. Than you can include a DTML method, which can edit this particular property. Look at the managment screen of the views of a ZClass, there is a nice method to change the order, by marking one and making this the first. Just for an example. HTH, __Janko Itamar Shtull-Trauring writes:
The day has come, and I am beginning to code in Zope.
The first thing I need to create is a ZClass, inheriting from Folder, where the order of the objects it contains is persistent, and can be changed by the users. That is, I want the user to be able to move the fifth object to be third in the list.
User interface issues aside, any ideas on how to implement this?
-- Itamar - itamars@ibm.net ---------------------------o----------------------------------------------o Perl/Gimp Greeting Cards | Trust? Ha! The US dollar is backed by ICBMs! | http://www.sealingwax.com | --Anonymous Coward, Slashdot |
Janko Hauser wrote:
The first thing I need to create is a ZClass, inheriting from Folder, where the order of the objects it contains is persistent, and can be changed by the users. That is, I want the user to be able to move the fifth object to be third in the list.
The ZClass/Folder can have a simple lines property, which serves as a sheet where the order of objects can be edited.
But a regular Folder doesn't display the objects in it based on this property. So how do I make it display them according to this property, and make sure that when I use the <dtml-in> tag it will also return the objects in this order (the whole point of the excercise)? -- Itamar - itamars@ibm.net ---------------------------o----------------------------------------------o Perl/Gimp Greeting Cards | Trust? Ha! The US dollar is backed by ICBMs! | http://www.sealingwax.com | --Anonymous Coward, Slashdot |
participants (2)
-
Itamar Shtull-Trauring -
Janko Hauser