[Zope] How to refer an object in a sub folder?

Sven Rudolph sven@spaghetticode.de
Tue, 2 Apr 2002 00:51:22 +0200


Hello Samy.

> How do I refer to 'index' in the folder 'java' from an object in 'tech'?
> 
> <dtml-var java/index> ???
Try this:
<dtml-var "java.index">

If you rename your file to "index_html" you can even do this:
<dtml-var java>

Please keep in mind, that you are dealing with objects in zope, _not_ files and folders.
(Even if the management screens make you think this)

If your browser looks for
http://my.zopeserver.org/main/sub/sub1/anothersub/index_html
this is similar to
<dtml-var "main.sub.sub1.anothersub">
or
<dtml-var "main.sub.sub1.anothersub.index_html">

Greetings

Sven Rudolph

P.S. Broken english spoken perfectly