[thelist] Zope / metal: question

Peter Thoenen eol1 at yahoo.com
Tue May 7 14:00:01 CDT 2002


Anybody know if i can define a slot within a slot?

for example:

<div metal:define-macro="blah">
<!-- LEFT BOX -->
<td width="124" valign="top">
  <div metal:define-slot="leftbox">
    <table width="100%" border="0" height="309">
      <tr><td>
        <div metal:define-slot="topleft"></div>
      </td></tr>
      <tr><td>
        <div metal:define-slot="bottomleft"></div>
      </td></tr>
    </table>
  </div>
</td>
</div>

this way I can do something like:

<div metal:use-macro="here/blah">
<!-- LEFT BOX -->
<td width="124" valign="top">
  <div metal:fill-slot="leftbox">
  override this stuff
  </div>
</td>
</div>

this would override slots topleft and bottomleft since
leftbox has higher precedence.

OR

<div metal:use-macro="here/blah">
<!-- LEFT BOX -->
<td width="124" valign="top">
  <table width="100%" border="0" height="309">
    <tr><td metal:fill-slot="topleft">override this
stuff
    </td></tr>
    <tr><td metal:fill-slot="bottomleft">override this
stuff</td></tr>
  </table>
</td>
</div>

This would allow me to use topleft and bottomleft as I
never declared an override on leftbox.

Is this possible or am I trying to do to much?

Peter



__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com



More information about the thelist mailing list