[Zope] including other objects from other folders

Loren Stafford lstaffor@dynalogic.com
Fri, 25 Feb 2000 07:54:32 -0800


<dtml-with Squishdot>
  <dtml-with Poll>
    <dtml-var index_html_or_whatever>
  </dtml-with>
</dtml-with>

If you're really including index_html, watch out for recursive calls to
standard_html_header.

-- Loren

----- Original Message -----
From: Kevin Meinert <kevn@vrac.iastate.edu>
To: <zope@zope.org>
Sent: February 25, 2000 07:40 AM
Subject: [Zope] including other objects from other folders


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Maybe this is in a faq somewhere (if so please point me to it!)
> but all the ones i've seen don't describe any way to do this:
>
> I want to include dhtml using a <#var > statement.  That's easy...
> but I want to include it from a different folder than the one i'm
> currently in.  For example...
>
> In index_html in my Squishdot folder, I want to "include" a "Poll"
> module in the page.
>
> Here's the hierarchy...
> + root
>   - index_html
>   + Squishdot
>     - index_html
>     + Poll
>       - index_html
>
> So in my root/Squishdot/index_html, I want a statement like <#var
> Poll/index_html>  but this of course gives a server error...  it
> apparently doesn't understand the / I gave it.
>
> Is there some other #include statement that I should be using?  Or is
> there some trick to using #var?  The documentation is so random, I
> can't find such a basic description of how to do what I need!  (plus
> Im really new to zope, so that may have something to do with it)
>
>
> Please email me a reply at KevinMeinert@BigFoot.com
>
> Thanks!!
> Kevin
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.5.2 for non-commercial use <http://www.pgp.com>
>
> iQA/AwUBOLaiWDlszdAdzf4MEQIXewCg64IUIWgqm1fgshedEKNLQQ3gXS0AoPqF
> eY8rl8eAcsEBK1l2tM9AR706
> =iwBA
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>