# I think this got rejected yesterday before I registered.
# Apologies if it appears as a re-post
Hello,
I am having a syntax problem with CGI::Formbuilder and TT.
I'd like to use the example in the TT FAQ to order form selections in
columns. I can't seem to find the correct way to replace 'data' in the
FAQ example (which follows this message).
The example gives:
[% USE table(data, rows=3) %]
and I've tried things like
[% data=form.field.my_choice %]
[% USE table(data, rows=3) %]
without success.
Thanks for any help.
Bob
====
How do I get the Table plugin to order data across rather than down?
Order the data into rows:
Steve Karen Jeff
Brooklyn Nantucket Fairfax
NY MA VA
[% USE table(data, rows=3) %]
Then ask for each column
[% FOREACH column = table.cols %]
And then print each item in the column going across the output rows
[% FOREACH item = column %]
<td>[% item %]</td>
[% END %]
=====
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates