Is there a way to find the filename of a DTML file that is used in a product via HTMLFile() ? I have tried various things, name(), _['__name__'], etc without success. What I am attempting to do is add some basic version checking to my dtml files and would like to be able to report the name of the file that has a problem as opposed to the URL, which may be different if the file is a reused snippet of dtml. The code looks something like this : <dtml-call "checkVersion( filename, version_no )"> <... more DTML code ...> Obviously, I can hardcode the name in each dtml file, but this is a potential maintenance problem. Any suggestions ? TIA Robert Leftwich
Robert Leftwich wrote:
Is there a way to find the filename of a DTML file that is used in a product via HTMLFile() ? I have tried various things, name(), _['__name__'], etc without success.
If these are DTML Documents, then id() should give you the filename. If they are methods, I'm not sure what you should do. -- ~mindlace
participants (2)
-
Ethan Fremen -
Robert Leftwich