On Thu, 22 Jun 2000, Patrick Lewis wrote:

> Try changing /index_html as follows:
> <dtml-var standard_html_header>
> <table>
> <tr><td><dtml-var "PARENTS[0].text_object_1" fmt=structured-text>
>     </td></tr>
> <tr><td><dtml-var "PARENTS[0].text_object_2" fmt=structured-text>
>     </td></tr>
> </table>
> <dtml-var standard_html_footer>
> Basically force Zope to look in the current folder first.


Is your root index_html a DTML Method or a DTML Document?

If it's a DTML Method, it should work as you desire; DTML Methods are the 
odd bird, and acquire differently than everyone else. DTML Methods
acquire other objects from the context in which they are called. This is
how standard_html_header and standard_html_footer work.

DTML Documents, however, acquire like every other Zope object, and will
behave as you have described: acquire text_object_1 and text_object_2
from the actual location of the DTML Document.


Jeff K. Hoffman                               704.849.0731 x108
Chief Technology Officer                      mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C.                         http://www.goingv.com/

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to