never mind.  i need to read more carefully.

i missed the 'loop' keyword ...

brian

Brian Clarkson wrote:
> 
> I've just re-read the documentation for this, so there must be something
> I'm really overlooking.
> 
> i have a foreach loop that contains an array of objects that looks like
> this:
> 
> [% FOREACH link = links.$section %]
> 
>   <td> [% link.name %] </td>
> 
> [% END %]
> 
> each 'link' is a custom-rolled object ...
> 
> what i'm trying to do is something like this:
> 
> [% FOREACH link = links.$section %]
> 
>   <td> [% link.name %] </td>
> 
>   [% IF link.count == 5 %]
> 
>     </tr>
>     <tr>
> 
>   [% END %]
> 
> [% END %]
> 
> so that i can start a new row if the size of links.$section is too
> large.
> 
> but i get no return value from:
> 
> [% links.$section.count %]
> [% link.count %]
> [% links.$section.number %]
> 
> i do get the right return value from:
> 
> [% links.$section.size %]
> 
> any assistance is appreciated ...
> 
> brian clarkson
> 
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://www.template-toolkit.org/mailman/listinfo/templates

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

Reply via email to