[Zope] I seem to be missing a "break" DTML tag
Mike Orr
mso@sense-sea-MegaSub-1-220.oz.net
Wed, 10 May 2000 11:19:21 -0700
On Wed, May 10, 2000 at 11:56:07AM -0500, Dennis Nichols wrote:
> <dtml-call "REQUEST.set('topdown', [])">
> <dtml-in PARENTS skip_unauthorized>
> <dtml-call "topdown.insert(0, _['sequence-item'])">
> </dtml-in>
>
> However, what I really want to do is quit reversing when I get up to a
> particular level, say the point at which I get to my Portal folder. I think
> I need to insert a line just before the </dtml-in> that says (untested :-)
>
> <dtml-break "_['sequence-item'].meta_type == 'Portal'">
A kludgey way would be to set a request variable meaning "not done"
before the loop, and put a dtml-if around your dtml-call to test
whether you're done.
--
-Mike Orr, mso@mso.oz.net -or- mso@oz.net (permanent: mso@jimpick.com)
http://mso.oz.net/ English * Esperanto * Russkiy * Deutsch * Espan~ol