[Zope] dtml-break ?
Evan Simpson
evan@digicool.com
Fri, 26 May 2000 10:51:53 -0400
----- Original Message -----
From: calvin33 <calvin33@ethome.net.tw>
> <dtml-in "my_catalog">
> <dtml-if "my_condition">
> <dtml-var "getobject(data_record_id_)">
> <dtml-break>
> . . .
>
> But i have get nothing ! Why ?
> I am sure that "my_condition" is right because it will show some
object without "dtml-break" .
Are you using some patch or Product which adds the "dtml-break" tag? It
doesn't exist in standard Zope, though a similar capability has been
proposed. As a workaround, you may want to try (untested):
<dtml-try>
<dtml-in ...>
<dtml-if ...>
...
<dtml-raise type="Break"></dtml-raise>
</dtml-if>
...
</dtml-in>
<dtml-except Break>
</dtml-try>
Cheers,
Evan @ digicool & 4-am