Hi Jim,

If you are in D you can access any object in D C B and A and if you are in A
and want to access an object in D then you can use the following syntax

<dtml-with B>
  <dtml-with C>
    <dtml-with D>
      <dtml-var object_you_wanna_call>
    </dtml-with>
  </dtml-with>
</dtml-with>

If a folder object in A or B is dynamic (with changing names for example)
you can get the folder by this for example

<dtml-with B>
<dtml-in "objectValues('Folder')">       /get all folders from dynamic B
  <dtml-with id>
    <dtml-in "objectValues('Folder')">   /get all folders from dynamic C
      <dtml-with id>                               /if D is a fix object
name in dynamiy C then you can use <dtml-with D>
        <dtml-var object_in_D>
      </dtml-with>
    </dtml-in>
  </dtml-with>
</dtml-in>
</dtml-with>

Jens

----- Original Message -----
From: "Jim Holthaus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 26, 2000 8:20 PM
Subject: [Zope] DTML and acquisition question


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> If A contains B which contains C which contains D
> (tree view)
> A
>    B
>       C
>          D
>
> and I am in A, how do I get to an item in D? What if B and C are dynamic?
> - --
> Jim Holthaus   (pronunciation: HOLT house)
> [EMAIL PROTECTED]
> PGP Public Key at http://www.holthaus.com/jim/pgpkey.html
> Learn about PGP at http://www.holthaus.com/jim/pgp.html
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.1
>
> iQA/AwUBOfiA2n3IcJJ+eC/CEQLANgCgkUTM9taDj2/lD81FU/PPw4s/dsoAoPjI
> f7leyiFJonYWWaOqI/SPd8ZQ
> =JUHP
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Zope maillist  -  [EMAIL PROTECTED]
> 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 )
>


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to