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

Dieter Maurer dieter@handshake.de
Tue, 2 Apr 2002 22:00:43 +0200


Rengasamy, Samy writes:
 > How to refer an object in a sub folder?
 > 
 > I have a folder 'java' under a folder 'tech'.
 > I have a template 'index' in 'tech'.
 > 
 > How do I refer to 'index' in the folder 'java' from an object in 'tech'?
 > 
 > <dtml-var java/index> ???
This is an FAQ:

  *  "dtml-with"

  *  attribute access 'expr="java.index(_.None,_)"' (in case "index"
     is a DTML object)

  *  "restrictedTraverse"

Please read the Zope book or

  <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>

to learn more about these options.


Dieter