Is there a way to exit a <dtml-in> based loop? I searched numerous resources but did not find anything on this topic that relates to the <dtml-in> tag. Any help would be greatly appreciated. Thanks. - Asad
Asad Habib wrote:
Is there a way to exit a <dtml-in> based loop? I searched numerous resources but did not find anything on this topic that relates to the <dtml-in> tag. Any help would be greatly appreciated. Thanks.
There is no such provision. You shouldn't be doing such a thing anyway: that sounds like programming. Keep logic in programming languages (like Python scripts) and display the results in a template (ZPT or DTML). --jcc -- "Building Websites with Plone" http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.com
Yes, I should not be doing this but I am using DTML not ZPT and since DTML provides programming functionality and in this case the ability to loop, there should be a way to exit a loop as well. - Asad On Wed, 15 Jun 2005, J Cameron Cooper wrote:
Asad Habib wrote:
Is there a way to exit a <dtml-in> based loop? I searched numerous resources but did not find anything on this topic that relates to the <dtml-in> tag. Any help would be greatly appreciated. Thanks.
There is no such provision. You shouldn't be doing such a thing anyway: that sounds like programming. Keep logic in programming languages (like Python scripts) and display the results in a template (ZPT or DTML).
--jcc
-- "Building Websites with Plone" http://plonebook.packtpub.com/
Enfold Systems, LLC http://www.enfoldsystems.com
Asad Habib wrote:
Yes, I should not be doing this but I am using DTML not ZPT and since DTML provides programming functionality and in this case the ability to loop, there should be a way to exit a loop as well.
DTML is not a complete programming language; it simply provides some (too-) familiar structures. You may try to treat it as such, and can get away with it to a certain extent, but you may run into limitations. If you treat it as a templating engine (which it is) you will find it complete. --jcc -- "Building Websites with Plone" http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.com
participants (2)
-
Asad Habib -
J Cameron Cooper