[Zope] Render DTML Document title inside another DTML Document in parent folder
Ping Lau
pinglau@tm.net.my
Sun, 3 Oct 1999 10:28:33 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_001F_01BF0D8A.0B347B60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Chas,
=20
Thanks. It works. Now I want to generalize it. I will create more =
folders inside FolderA and FolderB. Each newly created folder will =
contain at least one DTML Document that calls Doc1. Thus Doc1 has to =
determine which Doc from which folder dynamically. The goal is to use =
make Doc1 uses its own properties to render common results & uses =
caller's properties to render specific results. Any idea how to do =
that? Thanks.
Regards,
Ping
=20
>>>>
=20
Chas wrote:
=20
<dtml-with "FolderB.FolderC.Doc2">
<dtml-var title>
</dtml-with>
=20
or=20
=20
<dtml-var "FolderB.FolderC.Doc2.title">
=20
>>>>
=20
Ping wrote:
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:
=20
FolderA
Doc1
FolderB
FolderC
Doc2
=20
FolderA contains DTML Document Doc1 & FolderB. FolderB contains FolderC. =
FolderC contains DTML Document Doc2. Doc1 is called from Doc2 using
=20
<dtml-var Doc1>
=20
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
=20
------=_NextPart_000_001F_01BF0D8A.0B347B60
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><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
HTML//EN">
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Chas,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>Thanks. It works. Now I =
want to=20
generalize it. I will create more folders inside FolderA and=20
FolderB. Each newly created folder will contain at least one DTML =
Document=20
that calls Doc1. Thus Doc1 has to determine which Doc from which =
folder=20
dynamically. The goal is to use make Doc1 uses its own properties =
to=20
render common results & uses caller's properties to render specific=20
results. Any idea how to do that? Thanks.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000 size=3D2>Regards,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT><FONT =
size=3D2>Ping</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>>>>></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>Chas wrote:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2><dtml-with=20
"FolderB.FolderC.Doc2"><BR><dtml-var=20
title><BR></dtml-with></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>or </FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2><dtml-var=20
"FolderB.FolderC.Doc2.title"></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000 size=3D2><BR>>>>></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>Ping wrote:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2><BR>Is there a way to reference a =
DTML=20
Document's title in the folder 2-level deep from another DTML Document =
in the=20
parent folder? The hierarchy looks like this:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>FolderA<BR> Doc1<BR> =20
FolderB<BR> FolderC<BR> =20
Doc2</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>FolderA contains DTML Document Doc1 =
&=20
FolderB. FolderB contains FolderC. FolderC contains DTML Document Doc2. =
Doc1 is=20
called from Doc2 using</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2><dtml-var Doc1></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>In Doc1, I want to display Doc2's =
title. I tried=20
<dtml-var title>. But it rendered Doc1's title instead of Doc2's =
title.=20
How can I render Doc2's title?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2><BR>Regards,<BR>Ping</FONT></DIV>
<DIV><FONT color=3D#000000 =
size=3D2><BR></FONT> </DIV></BODY></HTML>
------=_NextPart_000_001F_01BF0D8A.0B347B60--