[Zope] Include function

Paz paz@chello.nl
Sun, 8 Jul 2001 12:42:34 +0200


Ismet,

Make sure you use the <dtml-with> to get into the correct location
considering you will bring a page from somewhere else into, say you root
index_html. Once you are in that space use:

<dtml-let page="_.getitem(nameofDocument)">
  <dtml var page>
</dtml-let>

You can shorten it to one line, but I just show you the general behaviour.
The let can be expanded greatly.

Succes,
Paz

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ismet
Sent: Sunday, July 08, 2001 9:28 AM
To: zope@zope.org
Subject: [Zope] Include function


hello all,

how to include a DTML method/document into another?

<dtml-var> does not work if the requested object is buried deep into another
container (folder/directory) branch and not in any parent container.

<dtml-with> is not a pratical one..

thanks for any help.
ismet


_______________________________________________
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 )