OK, I've found one solution. Its not pretty, but it works: <!-- Make sure we only get this notice once --!> <dtml-unless "REQUEST.get('voodoo',None)==1"> <p> <center><FONT SIZE=+1 COLOR=#FF0000>PRE-RELEASE VERSION</FONT></center> </p> <dtml-call "REQUEST.set('voodoo',1)"> </dtml-unless> <dtml-with aq_parent only> <dtml-var standard_html_footer> </dtml-with> Does anyone else have a better solution? -Greg -----Original Message----- From: Warnes, Gregory R [mailto:gregory_r_warnes@groton.pfizer.com] Sent: Thursday, May 16, 2002 4:34 PM To: zope@zope.org Subject: [Zope] avoiding dtml recursion Hi all I want to have a dtml file <standard_html_footer> that includes the contents of a <standard_html_footer> defined higher in the hierarchy. I tried <p> <center><FONT SIZE=+1 COLOR=#FF0000>PRE-RELEASE VERSION</FONT></center> </p> <dtml-with aq_parent only> <p><dtml-var standard_html_footer></p> </dtml-with> </body> </html> This works in the directory where this dtml-method is, however, I get another 'PRE-RELEASE VERSION' tacked on for every level down I go. What is the proper way to get around this? Thanks -Greg LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
participants (1)
-
Warnes, Gregory R