[Zope] fill-slot condition possible?

Mauricio Souza Lima mauricio.lima at varig.com
Mon Jan 26 14:40:09 EST 2004


Try this:

<tal:block condition="your/condition/here">
  <metal:block fill-slot="xxx">
    blah,blah,blah
  </metal:block>
</tal:block>

it should work...

> -----Original Message-----
> From: zope-bounces at zope.org [mailto:zope-bounces at zope.org]On Behalf Of
> Sune Brøndum Wøller
> Sent: Monday, January 26, 2004 3:35 PM
> To: zope
> Subject: [Zope] fill-slot condition possible?
>
>
> Hello,
> is it possible when using a macro to conditionally
> fill a slot ? In the same template, that is...
>
> Sometimes i want the slot filled, other times i would like
> to keep the default content of the slot.
> This is easy with two distinct templates,
> but in the same template ?
>
> --
> Sune B. Wøller
>
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )




More information about the Zope mailing list