[Zope-CMF] More questions

Doyon, Jean-Francois jdoyon at NRCan.gc.ca
Wed Nov 22 10:54:18 EST 2006


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

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 10:51 AM
To: Zope-CMF List
Subject: [Zope-CMF] More questions

This is just a quick one: how do I include documents within another document? ie. say I have local_pt which is going has different boxed with text from other documents. I assume I have to call a method on the document to render it correctly but haven't found the right one yet.

<div tal:content="here/MyDocument/text"></div> nearly works but obviously isn't quite right. I thought I'd seen a "render" method somewhere but that doesn't seem to be it either.

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