[z3-five] Re: yet more ZCML / template binding trouble

Rob Miller ra at burningman.com
Thu Jun 16 21:26:33 CEST 2005


On Jun 16, 2005, at 2:38 AM, Lennart Regebro wrote:

> Are you using "main" or "body" to fill the body slot?
> CMF and Zope3 doesn't use the same slot names. That's why CMFonFives
> five_template looks like this:

i've noticed the difference btn the CMF and Z3 default slot names; 
that's not where the problem lies.  i have no problem filling the 
five_template's slots.  i can't get five_template to fill the 
main_template slots, however, even when i use simple static text.

> <html metal:define-macro="page">
> <span metal:use-macro="here/main_template/macros/master">
>  <metal:block fill-slot="base">
>    <metal:block define-slot="base" />
>  </metal:block>
>  <metal:block fill-slot="header">
>    <metal:block define-slot="header" />
>  </metal:block>
>  <metal:block fill-slot="css_slot">
>    <metal:block define-slot="style_slot" />
>  </metal:block>
>  <metal:block fill-slot="main">
>    <metal:block define-slot="body" />
>  </metal:block>
> </span>
> </html>

this was what i started with.  but to illustrate the problem, i've 
changed it to this:

<html metal:define-macro="page">
   <span metal:use-macro="here/main_template/macros/master">
     <metal:block fill-slot="main">
       <h4>THIS SHOULD SHOW UP ON THE RENDERED PAGE</h4>
     </metal:block>
   </span>
</html>

as i said, main_template gets rendered, but the text i've placed there 
doesn't come through.  if i do not use main_template, but rather use a 
hand-rolled five_template that handles all of the skinning, i am able 
to fill the five_template slots w/o any problem.

-r



More information about the z3-five mailing list