[Zope] Render DTML Document title inside another DTML Document in parent folder

Ping Lau pinglau@tm.net.my
Sun, 3 Oct 1999 02:01:47 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01BF0D43.3FF5B360
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Is there a way to reference a DTML Document's title in the folder =
2-level deep from another DTML Document in the parent folder?  The =
hierarchy looks like this:

FolderA
  Doc1
  FolderB
    FolderC
      Doc2

FolderA contains DTML Document Doc1 & FolderB.  FolderB contains =
FolderC.  FolderC contains DTML Document Doc2.  Doc1 is called from Doc2 =
using

 <dtml-var Doc1>


In Doc1, I want to display Doc2's title.  I tried <dtml-var title>.  But =
it rendered Doc1's title instead of Doc2's title.  How can I render =
Doc2's title?


Regards,
Ping


------=_NextPart_000_000F_01BF0D43.3FF5B360
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Is there a way to reference a DTML =
Document's=20
title in the folder 2-level deep from another DTML Document in the =
parent=20
folder?&nbsp; The hierarchy looks like this:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>FolderA</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp; Doc1</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp; FolderB</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT><FONT =
size=3D2>&nbsp;&nbsp;&nbsp;=20
FolderC</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Doc2</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>FolderA contains DTML Document Doc1 =
&amp;=20
FolderB.&nbsp; FolderB contains FolderC.&nbsp; FolderC contains DTML =
Document=20
Doc2.&nbsp; Doc1 is called from Doc2 using</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;</FONT><FONT =
size=3D2>&lt;dtml-var=20
Doc1&gt;</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>In Doc1, I want to display Doc2's =
title.&nbsp; I=20
tried &lt;dtml-var title&gt;.&nbsp; But it rendered Doc1's title instead =
of=20
Doc2's title.&nbsp; How can I render Doc2's title?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Regards,</FONT></DIV>
<DIV><FONT size=3D2>Ping</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000F_01BF0D43.3FF5B360--