[ZPT] METAL, fill-slot and define-macron in the same PT

Peter Bengtsson mail@peterbe.com
Tue, 29 May 2001 15:44:00 +0200


Thsi pseudo object is invalid because the object defines a macro ("master")
also uses another macro ("mastermenu").

This is my pseudo standard_look_macro object.
-------------------------------------------------------
<html xmlns:m="http://xml.zope.org/namespaces/metal"
      m:define-macro="master">
<body>
          <div align="right"
              xmlns:me="http://xml.zope.org/namespaces/metal"
              me:use-macro="here/menu/macros/mastermenu"
              me:fill-slot="menu">
            Herer is the menu table
          </div>
            <span m:define-slot="textbody">
              Main body text main body text main body text main body text
            </span>
</body>
</html>
------------------------------------------------------

Since this doesn't work I am bound to do like this:

This is my real standard_look_macro object.
-------------------------------------------------------
<html xmlns:m="http://xml.zope.org/namespaces/metal"
      m:define-macro="master">
<body>
          <div align="right"
              tal:content="structure here/menu">
            Herer is the menu table
          </div>
            <span m:define-slot="textbody">
              Main body text main body text main body text main body text
            </span>
</body>
</html>
------------------------------------------------------

If I was allowed to do like the above, I would then be able to show a menu
on the template when somebody opens the template in Dreamweaver + to have
the menu as a seperate object.
Any good solutions?


Peter