Lucas, You can use acquisition here. For a folder tree like: /---- |---foo | |---bar | |--spam Within the spam folder, you can have a DTML method that calls manage_addDTMLDocument in order to add a DTML Document to foo: <dtml-call "foo.manage_addDTMLDocument('mydocumentid', 'mydocumentitle', mycontent)"> where mycontent is a variable that contains the document content. This method will also work in bar or any folders you create beneath foo, bar, or spam. Lucas Hofman wrote:
Can anyone tell me how to (in DTML) create a document in any other location as the script containing the manage_addDTMLDocument statement?
i.e. manage_addDTMLDocument('id','title','contents') generates a document named id on the same level as the method containing the statement. However, I would like to have it 2 levels down in the 'tree'.
Thanks for any suggestions,
Lucas Hofman
-- PGS Seres tel: +47 67514059 PO Box 354 fax: +47 67526506 N-1324 Lysaker Norway
_______________________________________________ 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 )
-- Chris McDonough - Digital Creations, Inc. Publishers of Zope - http://www.zope.org