Chas,
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
>>>>
Chas wrote:
<dtml-with
"FolderB.FolderC.Doc2">
<dtml-var
title>
</dtml-with>
or
<dtml-var
"FolderB.FolderC.Doc2.title">
>>>>
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:
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