[Zope] how to iterate through two sequence items

Peter Walerowski peter.walerowski@densxl.de
Fri, 8 Feb 2002 10:31:13 +0100


hello all,
sorry, forgot the subject.

my problem might be simple, but I can't find the solution:
I can iterate through a sequence - let's say a folder content - and display the 
items in a table, but I can't figure out how to display the table in two 
columns.

<dtml-in myFolderContent>
 <tr><td><dtml-var folderItem></td></tr>
</dtml-in>

will print the dates in a single column, but how can I iterate through and refer 
to a second item in one <dtml-in> pass.

somthing like

<dtml-in myFolderContent>
 <tr><td><dtml-var folderItem></td>
     <td><dtml-var folderItem[nextIndex]></td></tr>
</dtml-in>

???

My table should look like this:

  -----------------------
  | 1. item  | 2. item  |
  | 3. item  | 4. item  |
  | ...      | ...      |
  -----------------------

Thanks for help


----- d e n s  X L -------------------- medien konzepte design ---

peter walerowski                          tel: +49(0)30 218 055 53
nehringstr. 16                            fax: +49(0)30 326 050 89
14059 berlin                            mobil: +49(0)179 47 843 47

------------------------------------------------ www.densxl.de ---
--
berlin.de - meine stadt im netz. Jetzt eigene eMail-adresse @berlin.de sichern!
http://www.berlin.de/home/MeineStadt/Anmeldung