I am new to the Template toolkit and I am having trouble finding a good
method to do the following:

A Table of images with descriptions where the descriptions are in a
separate row, the table should be c columns wide, i.e. with 2 columns

<table>
<tr><td><img src="img1"><td><td><img src="img2"><td></tr>
<tr><td>description 1<td><td>description 2<td></tr>

<tr><td><img src="img3"><td><td><img src="img4"><td></tr>
<tr><td>description 3<td><td>description 4<td></tr>

....

</table>

Currently I get the data as multidimensional array immages, so I started
with

<table >
<tr >
[% FOREACH image = images %]
        <td  align="center" valign="middle">
        <img src="[%image.0%]" alt="dummy" height="100"
width="100"></td>


The description would be in image.1

....

But I am stuck here - how do I achieve the scenario as described above?


Any help is highly apprechiated...

Till

---
Till Quack
ECE Department
University of California
Santa Barbara, CA 93106-9560

Cell: 805-708-2045 


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to