[Zope] zope: methods and settings

Dieter Maurer dieter@handshake.de
Mon, 7 May 2001 20:10:20 +0200 (CEST)


Jan writes:
 > 1. i would like to write a method that creates a folder and a default
 > dtml-document. this methods shall be started through a form. at the moment i
 > can use this method in order to create a folder (id is given via form) and a
 > default dtml-document, both in the directory from which the method is
 > started. how can i make settings so that the default dtml-document is
 > created in the new folder, or put into the folder directly after creation?
 <dtml-call "manage_addFolder(id,....)">
 <dtml-with id>
   <dtml-call "manage_addDTMLDocument(....)">
   ....
 </dtml-with>

 > 2. i list zope folders in a navigation. in order to list them in a special
 > order i use an attribute (index). is it possible to display the value of
 > this attribute for each document or folder in the management screen in
 > addition to id and name?
You need to change the DTML source...



Dieter