If fields is a list reference you need something like

[% form.fields.0.label %]

http://www.template-toolkit.org/docs/aqua/Manual/Variables.html#Hash_Array_R
eferences

Regards, Peter
Dragonstaff Limited  http://www.dragonstaff.com

-----Original Message-----
From: RA Jones [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 13:47
To: [email protected]
Subject: [Catalyst] CC::FormBuilder woes

Apologies if this not the right forum for this (but if not, where else 
?). According to the FormBuilder docs, the following code in my template 
should (and does) work:

[% FOREACH field IN form.fields %]
<td>[% field.label %]</td>
<td>[% field.field%]</td>
[% END %]

But so should this (and doesn't):
<td>[% form.field.location.label %]</td>
<td>[% form.field.location.field%]</td>



_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to