[Q] iterating over objects in two's ...
11 Nov
1999
11 Nov
'99
9:08 a.m.
I wish to iterate over a number of images, putting 'n' images per row in a table. Something like the following: <table><tr> <dtml-in "objectValues(['Image'])"> <td><img src=<dtml-var id>></td> <dtml-if n_images_in_current_row> </tr> <dtml-if not_last_row> <tr> </dtml-if> </dtml-if> </dtml-in> </table> I take it this isn't batch processing since I want all images rendered in the one table. My guess is to use a temporary variable, increment it during each iteration, and check the value modulus n. Any advice is much appreciated. Cheers, Darran. -- Darran Edmundson [Darran.Edmundson@anu.edu.au]
9643
Age (days ago)
9643
Last active (days ago)
0 comments
1 participants
participants (1)
-
Darran Edmundson