Hi, Try this (untested): <dtml-with "y['z']"> <dtml-as-usual> </dtml-with> HTH --Gilles ----- Original Message ----- From: "Matt Gregory" <matthew.gregory@skyleach.com> To: "Andreas Jung" <andreas@zope.com> Cc: <zope@zope.org> Sent: Tuesday, February 19, 2002 3:58 PM Subject: Re: [Zope] (n00b question) Passing variables to dtml methods : Thanks, but I found that I had really asked the wrong question... : If I am in namespace x and I need a variable from namespace z in the form of : x : |_y : |_z : How do I access z from a method called from x? : I know (now) that I can do this by nested dtml-with calls but that is really : messy. : <dtml-with y> : <dtml-with z> : <dtml-var my_z_var> : <dtml-call my_x_method_needs_my_z_var> : </dtml-with> : </dtml-with> : : Is there a less painful way of being able to access z namespace variables : without nesting 200 dtml with calls? :