In that case, simply using something like:

<div tal:replace="structure here/mydoc" />

Should do it?  That will nest the default view of the document though, which 
risks giving out a main_template inside a main_template.  The trick will 
revolve around which view you want ... If any, or just the raw data.

You could create a ZPT specifically for nesting, and use it for embedding, 
using macros, or access the data directly via the CookedBody method or 
something like that?  (You'll have to dead the CMFDocument code to get the 
details though).


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Clark
Sent: November 22, 2006 11:03 AM
To: Doyon, Jean-Francois
Cc: Zope-CMF List
Subject: Re: [Zope-CMF] More questions

Am 22.11.2006 um 16:54 schrieb Doyon, Jean-Francois:

> You might want to look at METAL macros ...
> Mydoc:
> <p metal:define-macro="mymacro">content</p>
> Myotherdoc:
> <p metal:use-macro="here/mydoc/macros/mymacro" />
> See the ZPT reference for more details ...

Thanks, I'm quite happy with the METAL and TALES but this is when I wish to 
include a CMF document within another. It's a bit like the news box but for 
none news items.

Charlie Clark
Helmholtzstr. 20
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226

Zope-CMF maillist  -

See for bug reports and feature requests
Zope-CMF maillist  -

See for bug reports and feature requests

Reply via email to