incrementing variables in ZOPE
hi! I have this DTML problem, I want to display the contents of a particular folder in tabular form. say 5 columns by x rows. I once did this table display using incrementing counters on PHP, but I can't find its equivalent in Zope(I'm new to Zope and dtml). Can you guys help me. some ideas would really help. THANKS!! __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com
michael.tañag wrote:
hi! I have this DTML problem, I want to display the contents of a particular folder in tabular form. say 5 columns by x rows. I once did this table display using incrementing counters on PHP, but I can't find its equivalent in Zope(I'm new to Zope and dtml). Can you guys help me. some ideas would really help. THANKS!!
maybe this will give you an idea... <table> <dtml-in objectValues> <dtml-if "_['sequence-index'] % 5 == 0"> <dtml-if sequence-even><tr bgcolor="#d0d0d0"><dtml-else><tr></dtml-if> </dtml-if> <td><a href="<dtml-var absolute_url>"><dtml-var id></a></td> <dtml-if "_['sequence-index'] % 5 == 4"> </tr> </dtml-if> </dtml-in> </table> cheers, maik
From: "michael.tañag" <almightymike@yahoo.com>
I have this DTML problem, I want to display the contents of a particular folder in tabular form. say 5 columns by x rows. I once did this table display using incrementing counters on PHP, but I can't find its equivalent in Zope(I'm new to Zope and dtml). Can you guys help me. some ideas would really help. THANKS!!
Try using DTML-IN. It's used for looping stuff like this. To set and modify variables within a block you use dtml-let. Outside block you need to use <dtml-call "REQUEST.set('variable', value)">. Best Regards Lennart Regebro, Torped http://www.easypublisher.com/
participants (3)
-
Lennart Regebro -
Maik Jablonski -
michael.ta�ag