[Zope-CMF] More questions

Doyon, Jean-Francois jdoyon at NRCan.gc.ca
Wed Nov 22 11:20:50 EST 2006


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

J.F.

-----Original Message-----
From: zope-cmf-bounces at lists.zope.org [mailto:zope-cmf-bounces at lists.zope.org] 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
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



_______________________________________________
Zope-CMF maillist  -  Zope-CMF at lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


More information about the Zope-CMF mailing list