hi, consider the folowing scenario: an index_html dtml document is located in the root folder. this document includes another dtml document, includefile, with the dtml-var tag. /index_html /includefile /myfolder/includefile /myfolder/mysubfolder/ if i access the URL http://myhost/myfolder/mysubfolder, i get the index_html file from the root folder, by aquisition. the problem is that the included dtml file _also_ comes from the root. what i want is that the includefile in myfolder will override the one in the root folder. is this posible? -Tomas
On Sat, 5 May 2001, Tomas Mortensen wrote:
an index_html dtml document is located in the root folder. ^^^^^^^^^^^^^
This is THE problem. DTML Documents don't acquire objects - they use objects from static path, based on their position in the ZODB. To make acquisition works delete index_html and recreate it as DTML Method. DTML Methods acquire objects in expected dynamic way. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Hi Tomas, Tomas Mortensen wrote:
hi,
consider the folowing scenario:
an index_html dtml document is located in the root folder. this document includes another dtml document, includefile, with the dtml-var tag.
/index_html /includefile /myfolder/includefile /myfolder/mysubfolder/
if i access the URL http://myhost/myfolder/mysubfolder, i get the index_html file from the root folder, by aquisition. the problem is that the included dtml file _also_ comes from the root.
what i want is that the includefile in myfolder will override the one in the root folder. is this posible?
yes, if you use a dtml method (not a dtml document) for index_html ... Holger
participants (3)
-
Holger Hoffmann -
Oleg Broytmann -
Tomas Mortensen