how to iterate through two sequence items
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
On Fri, 2002-02-08 at 09:31, Peter Walerowski wrote:
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.
Untested, but should point you in the right direction: <dtml-in foo> <dtml-if sequence-odd> <tr> </dtml-if> <td><dtml-var sequence-item></td> <dtml-if sequence-even> </tr> </dtml-if> </dtml-in> seb
participants (2)
-
Peter Walerowski -
seb bacon