2 folders are next to each other, one is called test1 the other test2. They are within the same Home folder, but one is not within the other. Can an index_html document in test1 grab a dtml-var from test2? How is this done? In html i would simply write ../test2/dtml-var. This does not work in Zope. ************************* Tom Scheidt www.falsemirror.com tom@falsemirror.com *************************
<dtml-var "parents[1].test2.index_html"> would get index_html from ../test2 in a dtml document in ../test1 <dtml-var "parents[0].test2.index_html"> would get index_html from ../test2 in a dtml method in ../test1 There are other postings on why there is a difference between documents and methods if you care... cheers, Chris Tom Scheidt wrote:
2 folders are next to each other, one is called test1 the other test2. They are within the same Home folder, but one is not within the other. Can an index_html document in test1 grab a dtml-var from test2? How is this done? In html i would simply write ../test2/dtml-var. This does not work in Zope.
************************* Tom Scheidt www.falsemirror.com tom@falsemirror.com *************************
_______________________________________________ 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 )
On Thu, 9 Mar 2000, Tom Scheidt wrote:
In html i would simply write ../test2/dtml-var. This does not work in Zope.
I am not sure what you mean by dtml-var but I assume you want to access some attribute in test2. You can make test2 attributes accessible in test1 by: <dtml-with test2> tarari tarara </dtml-with> pavlos
Tom Scheidt wrote:
2 folders are next to each other, one is called test1 the other test2. They are within the same Home folder, but one is not within the other. Can an index_html document in test1 grab a dtml-var from test2? How is this done? In html i would simply write ../test2/dtml-var. This does not work in Zope.
In test1... <dtml-with test2> <dtml-var index_html> </dtml-with> -Michel
participants (4)
-
Chris Withers -
Michel Pelletier -
Pavlos Christoforou -
Tom Scheidt