[ZPT] Filling multiple macro solts

Dieter Maurer dieter@handshake.de
Tue, 27 Nov 2001 21:49:31 +0100


Sin Hang Kin writes:
 > I read some templates from the CMF, and I was wandering how to fill multiple
 > slots:
 > 
 > For example, the master macro define several slots :
 > 
 > a top menu slot called hmenu
 > a side menu slot called vmenu
 > the header slot called header
 > the bottom slot call footer
 > and the content slot called content
 > 
 > I known if you want to change the content slots, you just fill it. But how
 > do we fill more than one slots from the same macro template? Is it possible?
 > Do we need to follow the master template's structure?
Read some of the templates that use this macro.

I am sure, some of them will fill several slots.

But it is also very easy and natural:

    <XXXX metal:use-macro="...">
      <AAAA metal:fill-slot="....">aaaaaa</AAAA>
      <BBBB metal:fill-slot="....">bbbbbb</BBBB>
      ....
    </XXXX>


Dieter