Hello, I have problems getting the loop index to use itself as a string variable, a 
normal literal.  I can't get ip_object.i
tem to be interpreted by the machinery as cat_object.field1.  The code is short it's 
just

[% FOREACH item = [ 'field1', 'field2', 'field3', 'field4', 'field5', 'field6', 
'field7', 'field8', 'field9', 'field10', 'fi
eld11', 'field12', 'field13', 'field14','field15', 'field16', 'field17', 'field17', 
'field18', 'field19', 'field20' ] -%]
        <tr align="center" valign="bottom" bgcolor="[% theme.head_bgcolor %]">
        [% INCLUDE pkg_autoindex::new_td_section( name = item , class = 'new') %]
        <td>[% INCLUDE form_text(name =  item , value =  ip_object.item , size =24, 
maxlength = 50 ) %]</td>
        <td>&nbsp;</td>
        </tr>
[%END %]


the part that says ip_object.item is not being interpreted as being ip_object.field1.  
 If I substitute ip_object.field1 for
 ip_object.item it retrieves the correct value so the problem's right there, but what 
is the syntax for such a loop?

I'm sure somebody knows because I looked in the archives and there are some toolkit 
developers on the list.  

thanks.

-- 
joseph speigle
www.sirfsup.com
[EMAIL PROTECTED]
page: 377-7377 (210)


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

Reply via email to