Just use the object's name in a variable. If do <dtml-var standard_html_footer> DTML will find the "closest" standard_html_footer in the stack, going up to the root folder if need be. -- Andy McKay Agmweb Consulting http://www.agmweb.ca ----- Original Message ----- From: "Dan Jacobs" <dan@caliginous.com> To: <zope@zope.org> Sent: Sunday, August 18, 2002 12:36 PM Subject: [Zope] aquiring objects upward in DTML
Hi,
Is there an easy way within a DTML method to acquire a named object that may be anywhere upward.
At the moment I'm looking at the parent by doing aq_parent['name'] but that only looks one level up. I tried aq_acquire('name') and aq_parent.aq_acquire('name') but they don't work.
Thanks,
Dan
_______________________________________________ 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 )