[Zope] ZPT macro using a macro from the same page template

Dieter Maurer dieter@handshake.de
Tue, 22 Jul 2003 23:31:40 +0200


Gilles Lenfant wrote at 2003-7-22 15:44 +0200:
 > I made an all purpose widget macros collection template, and one macro from
 > the template is used by another one.
 > 
 > Is there a kind of shortcut to tell the main macro that the secondary macro
 > is defined in the same template ?
 > 
 > <div metal:define-macro="aux">
 > </div>
 > <div metal:define-macro="main">
 >   <div metal:use-macro="xxx/aux">
 >   </div>
 > </div>

Unfortunately not.

I consider this a major drawback as it prevents the definition
of macro libraries.


Nowadays, we almost always use ZPT through CMF's "portal_skins".
Therefore, "container" is the portal and we access
the ZPTs via "container/ZPT_id".


Dieter