Thanks Josh!! I made those changes and it is more adherent to standards. Now I just need to figure out how to arrange the data across.
It is still going down ie: 1 4 7 2 5 8 3 6 9 Also still having the problem with a result set of 9, if it's any other number it works fine but with a "news.size" of 9 (or 8 actually, including 0) I get: 1 4 7 null 2 5 8 null 3 6 9 null Just blank data in those cells. All the other structure is in tact, but the template variables are all null. HUMM???? On Thu, Aug 28, 2008 at 1:02 PM, Josh Rosenbaum <[EMAIL PROTECTED]> wrote: > Kelly Thompson wrote: > >> However, I am having trouble due to the need for closing </tr> and opening >> <tr> tags. >> >> Here's what I have: >> >> <table width="100%" cellpadding="4"> >> <tr> >> >> [% USE table news, cols = 4 %] >> >> [% FOREACH row IN table.row %] >> >> [% FOREACH cell IN row %] >> >> <td class="littleBoxes" valign="top"> >> <img src="[% cell.img %]"> >> [% cell.title %] >> [% cell.content %] </td> >> [%- END -%] >> >> </tr> >> >> <tr> >> [% END %] >> >> >> </table> >> > > > This is close, but your TR should be at the beginning and end of that first > FOREACH like so: > > <table width="100%" cellpadding="4"> > [% USE table news, cols = 4 %] > [% FOREACH row IN table.rows %] > <tr> > [% FOREACH cell IN row %] > <td class="littleBoxes" valign="top"> > <img src="[% cell.img %]"> > [% cell.title %] > [% cell.content %] </td> > [%- END -%] > </tr> > [% END %] > </table> > > I also noticed you used "IN table.row" rather than "table.rows". The docs > shows table.rows, so I'm not sure if that would have any effect either, but > given that the documentation shows usage of table.row(n) I would suspect > there could possibly be a problem if that didn't return all rows when there > was no parameter. > > -- Josh >
_______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates